about summary refs log tree commit diff
path: root/pkgs/taalo-build
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2019-02-13 00:43:01 +0100
committeraszlig <aszlig@nix.build>2019-02-13 00:43:01 +0100
commit8bf8d1091af819f98759ae7e83f44354030efed6 (patch)
tree405456d52498b212561c7223509227ae5bb4d688 /pkgs/taalo-build
parent15008e69542774c441e388ad4c2e28a2d27f9ba0 (diff)
taalo-build: Allow to build multiple derivations
If taalo-build is used on a Nix expression returning multiple
derivations either by a list or an attribute set, nix-instantiate will
return multiple paths.

Quoting the argument to "nix-store -r" however will pass the newline-
separated files returned by nix-instantiate as one big file name, which
in turn causes the realize to fail.

Removing those quotes doesn't have this problems and we also don't get
into trouble because those paths are under our control and don't contain
spaces or tabs (which would then be splitted by the shell).

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/taalo-build')
-rw-r--r--pkgs/taalo-build/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/taalo-build/default.nix b/pkgs/taalo-build/default.nix
index 700dfd1c..383b974f 100644
--- a/pkgs/taalo-build/default.nix
+++ b/pkgs/taalo-build/default.nix
@@ -23,7 +23,7 @@ in runCommand "taalo-build" {} ''
     gctmp="$(${lib.escapeShellArg "${coreutils}/bin/mktemp"} -d)"
     trap 'rm -rf "$gctmp"' EXIT
     drv="$(${mkNix "nix-instantiate"} --add-root "$gctmp/drv" --indirect "$@")"
-  '' + remoteRealize "" "\"$drv\"")} > "$out/bin/taalo-build"
+  '' + remoteRealize "" "$drv")} > "$out/bin/taalo-build"
 
   ${emitScript (remoteRealize "exec " "\"$@\"")} > "$out/bin/taalo-realize"