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
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

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