Skip to content

Commit

Permalink
nix: fix 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 authored and arthw committed Nov 15, 2024
1 parent 37a5802 commit c1b931f
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 c1b931f

Please sign in to comment.