mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
utils: nix-shell-wrapper: Adjust environment-unset when other options are used for the same variable.
This commit is contained in:
1 file changed
+7
-1
@@ -326,7 +326,13 @@ Examples:
|
|||||||
(append (match environment-keep
|
(append (match environment-keep
|
||||||
(#t
|
(#t
|
||||||
(append-map (cut list "--unset-env-var" <>)
|
(append-map (cut list "--unset-env-var" <>)
|
||||||
environment-unset))
|
(lset-difference string=?
|
||||||
|
environment-unset
|
||||||
|
(append
|
||||||
|
(if (boolean? environment-keep)
|
||||||
|
'()
|
||||||
|
environment-keep)
|
||||||
|
(map car environment-set)))))
|
||||||
(#f
|
(#f
|
||||||
'("--ignore-env"))
|
'("--ignore-env"))
|
||||||
(_
|
(_
|
||||||
|
|||||||
Reference in new issue
Block a user