From 5ad7004c77a5c1e8a06c15942e157d944f0c9d11 Mon Sep 17 00:00:00 2001 From: ene Date: Tue, 21 Mar 2023 16:23:24 +0100 Subject: Fix(lib): Unset the default path before extending it It is harmful to use the provided path as there are no guaranties for its completeness. --- lib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 35e02d45..20088dc4 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -15,7 +15,7 @@ install -m755 ${script} -D "$out/bin/${name}" sed -i 's|%SHELL_LIBRARY_PATH|${shell-library}/lib|' "$out/bin/${name}" patchShebangs "$out/bin/${name}" - wrapProgram "$out/bin/${name}" --prefix PATH : ${pkgs.lib.makeBinPath dependencies} + wrapProgram "$out/bin/${name}" --set PATH ${pkgs.lib.makeBinPath dependencies} ''; makeShellScriptWithLibraryUnwrapped = { -- cgit 1.4.1