diff options
author | Yorick <yorick.vanpelt@serokell.io> | 2020-01-06 16:42:21 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-01-18 23:53:12 +0100 |
commit | bcf7dbbe3a119d85d8b817ef32c300c62f38e737 (patch) | |
tree | 9aa006a7aff02f6178061004143ce21a9b2082a6 /pkgs/profpatsch/execline/escape.nix | |
parent | da1985c5aeaf512c3d9b92d8585e345a996788ac (diff) |
escape: support paths
This makes ./foo work.
Diffstat (limited to 'pkgs/profpatsch/execline/escape.nix')
-rw-r--r-- | pkgs/profpatsch/execline/escape.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/profpatsch/execline/escape.nix b/pkgs/profpatsch/execline/escape.nix index d9a0be0c..dff07a19 100644 --- a/pkgs/profpatsch/execline/escape.nix +++ b/pkgs/profpatsch/execline/escape.nix @@ -20,6 +20,7 @@ let (let go = arg: if builtins.isString arg then [(escapeExeclineArg arg)] + else if builtins.isPath arg then [(escapeExeclineArg "${arg}")] else if lib.isDerivation arg then [(escapeExeclineArg arg)] else if builtins.isList arg then [ "{" ] ++ builtins.concatMap go arg ++ [ "}" ] else abort "escapeExecline can only hande nested lists of strings, was ${lib.generators.toPretty {} arg}"; |