From 0360217e8fd3953f647788ef9774a0e8c43b50af Mon Sep 17 00:00:00 2001 From: Michael Hueschen Date: Mon, 22 Jan 2024 16:44:10 -0700 Subject: [PATCH] nix-shell: use addToSearchPath thx to @SomeoneSerge for the suggestion! --- .devops/nix/package.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 09646d5b2..bcdf7c10d 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -213,15 +213,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" ''; };