mkUserEnvironment: polyfill for older versions of nix
This commit is contained in:
parent
8014dcc5af
commit
9f61ec7d27
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@
|
||||||
# Supporting code
|
# Supporting code
|
||||||
with builtins;
|
with builtins;
|
||||||
let
|
let
|
||||||
|
# back-compat
|
||||||
|
isPath = builtins.isPath or (x: builtins.typeOf x == "path");
|
||||||
|
|
||||||
# Escape Nix strings
|
# Escape Nix strings
|
||||||
stringEscape = str:
|
stringEscape = str:
|
||||||
"\"" + (
|
"\"" + (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue