utils: nix-shell-wrapper: Adjust environment-unset when other options are used for the same variable.

This commit is contained in:
Hilton Chain committed 2026-09-11 19:02:24 +08:00
1 parent 44e890633e
commit a21dc8e795
1 file changed
+7 -1
+7 -1
View File
@@ -326,7 +326,13 @@ Examples:
(append (match environment-keep
(#t
(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
'("--ignore-env"))
(_