nix: add the impure driver's location to the DT_RUNPATHs

This commit is contained in:
Someone Serge 2023-12-26 17:26:22 +00:00
parent ae6bebccb1
commit 1efbc6b064
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4

View file

@ -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 ]