summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.devops/nix/package.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix
index c25d99f0..91ddb889 100644
--- a/.devops/nix/package.nix
+++ b/.devops/nix/package.nix
@@ -221,10 +221,16 @@ 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
+ '';
};
shell-extra = mkShell {