tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libnvidia-container: use applyPatches
Moritz Sanft
1 year ago
e602d6fd
8e4a4a9c
+17
-12
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
li
libnvidia-container
package.nix
+17
-12
pkgs/by-name/li/libnvidia-container/package.nix
···
10
10
rpcsvc-proto,
11
11
libtirpc,
12
12
makeWrapper,
13
13
-
substituteAll,
14
13
removeReferencesTo,
15
14
replaceVars,
16
15
go,
16
16
+
applyPatches,
17
17
}:
18
18
let
19
19
modprobeVersion = "550.54.14";
20
20
-
nvidia-modprobe = fetchFromGitHub {
21
21
-
owner = "NVIDIA";
22
22
-
repo = "nvidia-modprobe";
23
23
-
rev = modprobeVersion;
24
24
-
sha256 = "sha256-iBRMkvOXacs/llTtvc/ZC5i/q9gc8lMuUHxMbu8A+Kg=";
25
25
-
};
26
26
-
modprobePatch = substituteAll {
27
27
-
src = ./modprobe.patch;
28
28
-
inherit modprobeVersion;
20
20
+
nvidia-modprobe = applyPatches {
21
21
+
src = fetchFromGitHub {
22
22
+
owner = "NVIDIA";
23
23
+
repo = "nvidia-modprobe";
24
24
+
rev = modprobeVersion;
25
25
+
sha256 = "sha256-iBRMkvOXacs/llTtvc/ZC5i/q9gc8lMuUHxMbu8A+Kg=";
26
26
+
};
27
27
+
patches = [
28
28
+
(replaceVars ./modprobe.patch {
29
29
+
inherit modprobeVersion;
30
30
+
})
31
31
+
];
29
32
};
30
33
in
31
34
stdenv.mkDerivation rec {
···
70
73
chmod -R u+w deps/src
71
74
pushd deps/src
72
75
73
73
-
patch -p0 < ${modprobePatch}
74
76
touch nvidia-modprobe-${modprobeVersion}/.download_stamp
75
77
popd
76
78
···
146
148
license = licenses.asl20;
147
149
platforms = platforms.linux;
148
150
mainProgram = "nvidia-container-cli";
149
149
-
maintainers = with maintainers; [ cpcloud msanft ];
151
151
+
maintainers = with maintainers; [
152
152
+
cpcloud
153
153
+
msanft
154
154
+
];
150
155
};
151
156
}