Skip to content

Commit 44ea31d

Browse files
enolanarthw
authored andcommitted
nix: fix CUDA build - replace deprecated autoAddOpenGLRunpathHook
The CUDA nix build broke when we updated nixpkgs in 8cd1bcf. As far as I can tell all that happened is cudaPackages.autoAddOpenGLRunpathHook got moved to pkgs.autoAddDriverRunpath. This commit fixes it.
1 parent b612f10 commit 44ea31d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.devops/nix/package.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
mpi,
1414
blas,
1515
cudaPackages,
16+
autoAddDriverRunpath,
1617
darwin,
1718
rocmPackages,
1819
vulkan-headers,
@@ -192,10 +193,7 @@ effectiveStdenv.mkDerivation (
192193
]
193194
++ optionals useCuda [
194195
cudaPackages.cuda_nvcc
195-
196-
# TODO: Replace with autoAddDriverRunpath
197-
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
198-
cudaPackages.autoAddOpenGLRunpathHook
196+
autoAddDriverRunpath
199197
]
200198
++ optionals (effectiveStdenv.hostPlatform.isGnu && enableStatic) [
201199
glibc.static

0 commit comments

Comments
 (0)