mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-12 04:40:42 -05:00
mkUserEnvironment: polyfill for older versions of nix
This commit is contained in:
@@ -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:
|
||||||
"\"" + (
|
"\"" + (
|
||||||
|
|||||||
Reference in New Issue
Block a user