Skip to content

Commit 1efbc6b

Browse files
committed
nix: add the impure driver's location to the DT_RUNPATHs
1 parent ae6bebc commit 1efbc6b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.devops/nix/package.nix

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,20 @@ effectiveStdenv.mkDerivation (
124124
substituteInPlace ./*.py --replace "/usr/bin/env python" "${llama-python}/bin/python"
125125
'';
126126

127-
nativeBuildInputs = [
128-
cmake
129-
ninja
130-
pkg-config
131-
git
132-
] ++ optionals useCuda [ cudaPackages.cuda_nvcc ];
127+
nativeBuildInputs =
128+
[
129+
cmake
130+
ninja
131+
pkg-config
132+
git
133+
]
134+
++ optionals useCuda [
135+
cudaPackages.cuda_nvcc
136+
137+
# TODO: Replace with autoAddDriverRunpath
138+
# once https://github.com/NixOS/nixpkgs/pull/275241 has been merged
139+
cudaPackages.autoAddOpenGLRunpathHook
140+
];
133141

134142
buildInputs =
135143
[ mpi ]

0 commit comments

Comments
 (0)