Skip to content

Commit 72db73a

Browse files
committed
cudaPackage_10_0.cudatoolkit: fix build
Acknowledge to `autoPatchelfHook` that we don't have ancient versions of ffmeg for the jre shipped. Also, targets/ directory doesn't exist in cuda 10.0, so the preFixup phase collected 0 files and when passed to patchelf would fail the build.
1 parent 51d4de8 commit 72db73a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkgs/development/cuda-modules/cudatoolkit/default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,17 @@ backendStdenv.mkDerivation rec {
180180
# This dependency is asked for by target-linux-x64/CollectX/RedHat/x86_64/libssl.so.10
181181
# - do we even want to use nvidia-shipped libssl?
182182
"libcom_err.so.2"
183+
] ++ lib.optionals (lib.versionOlder version "10.1") [
184+
# For Cuda 10.0, nVidia also shipped a jre implementation which needed
185+
# two old versions of ffmpeg which are not available in nixpkgs
186+
"libavcodec.so.54"
187+
"libavcodec.so.53"
188+
"libavformat.so.54"
189+
"libavformat.so.53"
183190
];
184191

185192
preFixup =
186-
if lib.versionOlder version "11" then
193+
if (lib.versionAtLeast version "10.1" && lib.versionOlder version "11") then
187194
''
188195
${lib.getExe' patchelf "patchelf"} $out/targets/*/lib/libnvrtc.so --add-needed libnvrtc-builtins.so
189196
''

0 commit comments

Comments
 (0)