-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpanfrost.nix
29 lines (29 loc) · 957 Bytes
/
panfrost.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
self: super:
{
mesa =
let
minVersion = "19.2.0";
in
if (self.lib.versionOlder super.mesa.version minVersion) then (super.mesa.overrideAttrs (o:
let
version = minVersion;
branch = builtins.head (self.lib.splitString "." version);
in
{
inherit version;
src = super.fetchurl {
urls = [
"ftp://ftp.freedesktop.org/pub/mesa/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
"https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
];
sha256 = "0al5235xrsv5walyavn192mg4n4g1rykgxqg2qqn918gl2iclq5h";
};
postFixup = builtins.replaceStrings [
"rm $dev/lib/pkgconfig/{gl,egl}.pc"
] [
"rm $dev/lib/pkgconfig/gl.pc"
] o.postFixup;
})) else super.mesa;
}