Skip to content

Commit

Permalink
Fix nix CUDA build: replace deprecated autoAddOpenGLRunpathHook
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
enolan committed Aug 22, 2024
1 parent 11b84eb commit 4cdab2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .devops/nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
mpi,
blas,
cudaPackages,
autoAddDriverRunpath,
darwin,
rocmPackages,
vulkan-headers,
Expand Down Expand Up @@ -192,10 +193,7 @@ effectiveStdenv.mkDerivation (
]
++ optionals useCuda [
cudaPackages.cuda_nvcc

# TODO: Replace with autoAddDriverRunpath
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
cudaPackages.autoAddOpenGLRunpathHook
autoAddDriverRunpath
]
++ optionals (effectiveStdenv.hostPlatform.isGnu && enableStatic) [
glibc.static
Expand Down

0 comments on commit 4cdab2b

Please sign in to comment.