about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-21 16:23:24 +0100
committerene <ene@sils.li>2023-03-21 16:23:24 +0100
commit5ad7004c77a5c1e8a06c15942e157d944f0c9d11 (patch)
tree29e9ba22eca5c96c6c5a724bf93daa1cb8a0285f /lib
parentChore(flake): Update (diff)
downloadnixos-config-5ad7004c77a5c1e8a06c15942e157d944f0c9d11.tar.gz
nixos-config-5ad7004c77a5c1e8a06c15942e157d944f0c9d11.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
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 = {