From bcf7dbbe3a119d85d8b817ef32c300c62f38e737 Mon Sep 17 00:00:00 2001 From: Yorick Date: Mon, 6 Jan 2020 16:42:21 +0100 Subject: escape: support paths This makes ./foo work. --- pkgs/profpatsch/execline/escape.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/profpatsch/execline') 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}"; -- cgit 1.4.1