1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

releaseTools.nixBuild: Support builds with multiple outputs

This commit is contained in:
Eelco Dolstra 2013-02-13 13:53:41 +01:00
parent 7d5936856a
commit a0a6f0edfd

View file

@ -46,17 +46,17 @@ stdenv.mkDerivation (
header "Copying build directory to $KEEPBUILDDIR"
mkdir -p $KEEPBUILDDIR
cp -R $TMPDIR/* $KEEPBUILDDIR
stopNest
stopNest
fi
fi
'';
}
// args //
// args //
{
name = name + (if src ? version then "-" + src.version else "");
postHook = ''
. ${./functions.sh}
origSrc=$src
@ -75,7 +75,10 @@ stdenv.mkDerivation (
echo "$system" > $out/nix-support/system
if [ -z "${toString doCoverageAnalysis}" ]; then
echo "nix-build none $out" >> $out/nix-support/hydra-build-products
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
done
fi
'';