summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hueschen <m@mhueschen.dev>2024-01-22 16:44:10 -0700
committerSomeone <newkozlukov@gmail.com>2024-01-24 12:39:29 +0000
commitc9b316c78fba31e65879a2ec91cbafd341b88cce (patch)
treef1c3ee6044d8904ae5ae5520e58071c871a1f478
parentbf63d695b804b1c995c7ae4427a8a86936ea6d25 (diff)
nix-shell: use addToSearchPath
thx to @SomeoneSerge for the suggestion!
-rw-r--r--.devops/nix/package.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix
index 91ddb889..a868a9a6 100644
--- a/.devops/nix/package.nix
+++ b/.devops/nix/package.nix
@@ -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"
'';
};