Skip to content

Commit

Permalink
nix-shell: use addToSearchPath
Browse files Browse the repository at this point in the history
thx to @SomeoneSerge for the suggestion!
  • Loading branch information
mhuesch authored and SomeoneSerge committed Jan 24, 2024
1 parent bf63d69 commit c9b316c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .devops/nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,12 @@ effectiveStdenv.mkDerivation (
;

shell = mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
effectiveStdenv.cc.cc
];
name = "shell-${finalAttrs.finalPackage.name}";
description = "contains numpy and sentencepiece";
buildInputs = [ llama-python ];
inputsFrom = [ finalAttrs.finalPackage ];
shellHook = ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
addToSearchPath "LD_LIBRARY_PATH" "${lib.getLib effectiveStdenv.cc.cc}/lib"
'';
};

Expand Down

0 comments on commit c9b316c

Please sign in to comment.