mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
nix-shell: use addToSearchPath
thx to @SomeoneSerge for the suggestion!
This commit is contained in:
parent
bf63d695b8
commit
c9b316c78f
@ -221,15 +221,12 @@ effectiveStdenv.mkDerivation (
|
|||||||
;
|
;
|
||||||
|
|
||||||
shell = mkShell {
|
shell = mkShell {
|
||||||
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
|
|
||||||
effectiveStdenv.cc.cc
|
|
||||||
];
|
|
||||||
name = "shell-${finalAttrs.finalPackage.name}";
|
name = "shell-${finalAttrs.finalPackage.name}";
|
||||||
description = "contains numpy and sentencepiece";
|
description = "contains numpy and sentencepiece";
|
||||||
buildInputs = [ llama-python ];
|
buildInputs = [ llama-python ];
|
||||||
inputsFrom = [ finalAttrs.finalPackage ];
|
inputsFrom = [ finalAttrs.finalPackage ];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
addToSearchPath "LD_LIBRARY_PATH" "${lib.getLib effectiveStdenv.cc.cc}/lib"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user