forked from github-mirror/docker-nixpkgs
mkUserEnvironment: polyfill for older versions of nix
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
# Supporting code
|
||||
with builtins;
|
||||
let
|
||||
# back-compat
|
||||
isPath = builtins.isPath or (x: builtins.typeOf x == "path");
|
||||
|
||||
# Escape Nix strings
|
||||
stringEscape = str:
|
||||
"\"" + (
|
||||
|
||||
Reference in New Issue
Block a user