Fix system-path with multiout

This commit is contained in:
Luca Bruno
2015-12-01 15:09:41 +01:00
parent 920b1d3591
commit 31ed92f65f
3 changed files with 11 additions and 19 deletions
+1 -7
View File
@@ -21,10 +21,6 @@
# directories in the list is not symlinked.
pathsToLink ? ["/"]
, # The package outputs to include. By default, only the default
# output is included.
outputsToLink ? []
, # Root the result in directory "$out${extraPrefix}", e.g. "/share".
extraPrefix ? ""
@@ -40,9 +36,7 @@
runCommand name
rec { inherit manifest ignoreCollisions passthru pathsToLink extraPrefix postBuild buildInputs;
pkgs = builtins.toJSON (map (drv: {
paths =
[ drv ]
++ lib.concatMap (outputName: lib.optional (drv.${outputName}.outPath or null != null) drv.${outputName}) outputsToLink;
paths = [ drv ];
priority = drv.meta.priority or 5;
}) paths);
preferLocalBuild = true;