releaseTools.nixBuild: Put hydra-build-products in each output

Putting a single hydra-build-products in $out can cause $out to have
unnecessary dependencies on other outputs.
This commit is contained in:
Eelco Dolstra 2013-02-13 16:30:15 +01:00
parent b076ab94d6
commit 19ab71ff7a

View File

@ -77,7 +77,8 @@ stdenv.mkDerivation (
if [ -z "${toString doCoverageAnalysis}" ]; then
for i in $outputs; do
if [ "$i" = out ]; then j=none; else j="$i"; fi
echo "nix-build $j ''${!i}" >> $out/nix-support/hydra-build-products
mkdir -p ''${!i}/nix-support
echo "nix-build $j ''${!i}" >> ''${!i}/nix-support/hydra-build-products
done
fi
'';