From c9b316c78fba31e65879a2ec91cbafd341b88cce 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 91ddb88907504..a868a9a6176f8 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" ''; };