diff options
author | ene <ene@sils.li> | 2023-03-21 16:23:24 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-03-21 16:23:24 +0100 |
commit | 5ad7004c77a5c1e8a06c15942e157d944f0c9d11 (patch) | |
tree | 29e9ba22eca5c96c6c5a724bf93daa1cb8a0285f /lib/default.nix | |
parent | Chore(flake): Update (diff) | |
download | nixos-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/default.nix')
-rw-r--r-- | lib/default.nix | 2 |
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 = { |