mkUserEnvironment: polyfill for older versions of nix

This commit is contained in:
zimbatm
2019-12-20 15:43:07 +01:00
parent 8014dcc5af
commit 9f61ec7d27

View File

@@ -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:
"\"" + (