nix: add the impure driver's location to the DT_RUNPATHs
This commit is contained in:
parent
ae6bebccb1
commit
1efbc6b064
1 changed files with 14 additions and 6 deletions
|
@ -124,12 +124,20 @@ effectiveStdenv.mkDerivation (
|
||||||
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
|
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs =
|
||||||
cmake
|
[
|
||||||
ninja
|
cmake
|
||||||
pkg-config
|
ninja
|
||||||
git
|
pkg-config
|
||||||
] ++ optionals useCuda [ cudaPackages.cuda_nvcc ];
|
git
|
||||||
|
]
|
||||||
|
++ optionals useCuda [
|
||||||
|
cudaPackages.cuda_nvcc
|
||||||
|
|
||||||
|
# TODO: Replace with autoAddDriverRunpath
|
||||||
|
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
|
||||||
|
cudaPackages.autoAddOpenGLRunpathHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ mpi ]
|
[ mpi ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue