Skip to content

Commit c9b316c

Browse files
mhueschSomeoneSerge
authored andcommitted
nix-shell: use addToSearchPath
thx to @SomeoneSerge for the suggestion!
1 parent bf63d69 commit c9b316c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.devops/nix/package.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,12 @@ effectiveStdenv.mkDerivation (
221221
;
222222

223223
shell = mkShell {
224-
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
225-
effectiveStdenv.cc.cc
226-
];
227224
name = "shell-${finalAttrs.finalPackage.name}";
228225
description = "contains numpy and sentencepiece";
229226
buildInputs = [ llama-python ];
230227
inputsFrom = [ finalAttrs.finalPackage ];
231228
shellHook = ''
232-
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
229+
addToSearchPath "LD_LIBRARY_PATH" "${lib.getLib effectiveStdenv.cc.cc}/lib"
233230
'';
234231
};
235232

0 commit comments

Comments
 (0)