Skip to content

Commit

Permalink
nix: add the impure driver's location to the DT_RUNPATHs
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneSerge committed Dec 26, 2023
1 parent ae6bebc commit 1efbc6b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .devops/nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,20 @@ effectiveStdenv.mkDerivation (
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
'';

nativeBuildInputs = [
cmake
ninja
pkg-config
git
] ++ optionals useCuda [ cudaPackages.cuda_nvcc ];
nativeBuildInputs =
[
cmake
ninja
pkg-config
git
]
++ optionals useCuda [
cudaPackages.cuda_nvcc

# TODO: Replace with autoAddDriverRunpath
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
cudaPackages.autoAddOpenGLRunpathHook
];

buildInputs =
[ mpi ]
Expand Down

0 comments on commit 1efbc6b

Please sign in to comment.