2025-11-29 20:00:31 -06:00
|
|
|
{
|
|
|
|
|
combinators,
|
|
|
|
|
helpers,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2025-10-04 09:34:19 -07:00
|
|
|
let
|
2025-11-29 20:00:31 -06:00
|
|
|
inherit (combinators) unsafe-add-raw-args;
|
2025-10-04 09:34:19 -07:00
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
sig = "String -> Permission";
|
|
|
|
|
doc = ''
|
|
|
|
|
Forwards the specified environment variable to the underlying process (if set).
|
|
|
|
|
'';
|
2025-11-29 20:00:31 -06:00
|
|
|
impl =
|
|
|
|
|
name:
|
|
|
|
|
assert pkgs.lib.isValidPosixName name;
|
|
|
|
|
unsafe-add-raw-args "\${${name}+--setenv ${name} \"\${${name}}\"}";
|
2025-10-04 09:34:19 -07:00
|
|
|
}
|