about summary refs log tree commit diff
path: root/pkgs/profpatsch/execline
diff options
context:
space:
mode:
authorYorick <yorick.vanpelt@serokell.io>2020-01-06 16:42:21 +0100
committerProfpatsch <mail@profpatsch.de>2020-01-18 23:53:12 +0100
commitbcf7dbbe3a119d85d8b817ef32c300c62f38e737 (patch)
tree9aa006a7aff02f6178061004143ce21a9b2082a6 /pkgs/profpatsch/execline
parentda1985c5aeaf512c3d9b92d8585e345a996788ac (diff)
escape: support paths
This makes ./foo work.
Diffstat (limited to 'pkgs/profpatsch/execline')
-rw-r--r--pkgs/profpatsch/execline/escape.nix1
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}";