mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
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