2008-11-24 15:10:06 +00:00
|
|
|
{pkgs}:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
rec {
|
|
|
|
|
2009-03-26 14:11:59 +00:00
|
|
|
sourceTarball = args: import ./source-tarball.nix (
|
2008-12-10 10:58:07 +00:00
|
|
|
{ inherit stdenv autoconf automake libtool;
|
2008-11-28 16:12:50 +00:00
|
|
|
} // args);
|
2008-11-24 15:10:06 +00:00
|
|
|
|
2009-03-26 14:11:59 +00:00
|
|
|
makeSourceTarball = sourceTarball; # compatibility
|
|
|
|
|
|
|
|
binaryTarball = args: import ./binary-tarball.nix (
|
|
|
|
{ inherit stdenv;
|
|
|
|
} // args);
|
|
|
|
|
2010-03-05 10:09:22 +00:00
|
|
|
antBuild = args: import ./ant-build.nix (
|
2010-10-20 08:23:52 +00:00
|
|
|
{ inherit pkgs;
|
2010-03-05 10:09:22 +00:00
|
|
|
} // args);
|
|
|
|
|
2010-03-11 14:44:17 +00:00
|
|
|
mvnBuild = args: import ./maven-build.nix (
|
|
|
|
{ inherit stdenv;
|
|
|
|
} // args);
|
|
|
|
|
2008-11-24 15:10:06 +00:00
|
|
|
nixBuild = args: import ./nix-build.nix (
|
|
|
|
{ inherit stdenv;
|
|
|
|
} // args);
|
|
|
|
|
|
|
|
coverageAnalysis = args: nixBuild (
|
|
|
|
{ inherit lcov;
|
|
|
|
doCoverageAnalysis = true;
|
|
|
|
} // args);
|
|
|
|
|
2009-03-02 13:45:48 +00:00
|
|
|
rpmBuild = args: import ./rpm-build.nix (
|
|
|
|
{ inherit vmTools;
|
|
|
|
} // args);
|
2008-11-25 00:20:51 +00:00
|
|
|
|
2009-03-02 13:45:48 +00:00
|
|
|
debBuild = args: import ./debian-build.nix (
|
|
|
|
{ inherit stdenv vmTools checkinstall;
|
2008-11-25 00:20:51 +00:00
|
|
|
} // args);
|
|
|
|
|
2013-03-20 14:52:08 +00:00
|
|
|
aggregate =
|
2013-08-15 00:29:08 +00:00
|
|
|
{ name, constituents, meta ? { } }:
|
2013-03-20 14:52:08 +00:00
|
|
|
pkgs.runCommand name
|
2013-08-15 00:29:08 +00:00
|
|
|
{ inherit constituents meta;
|
2013-03-20 14:52:08 +00:00
|
|
|
_hydraAggregate = true;
|
|
|
|
}
|
|
|
|
''
|
2013-08-14 23:40:09 +00:00
|
|
|
mkdir -p $out/nix-support
|
2013-08-21 09:47:30 +00:00
|
|
|
touch $out/nix-support/hydra-build-products
|
2013-08-15 00:29:08 +00:00
|
|
|
echo $constituents > $out/nix-support/hydra-aggregate-constituents
|
2013-08-14 23:40:09 +00:00
|
|
|
|
|
|
|
# Propagate build failures.
|
2013-08-15 00:29:08 +00:00
|
|
|
for i in $constituents; do
|
2013-08-14 23:40:09 +00:00
|
|
|
if [ -e $i/nix-support/failed ]; then
|
|
|
|
touch $out/nix-support/failed
|
|
|
|
fi
|
|
|
|
done
|
2013-03-20 14:52:08 +00:00
|
|
|
'';
|
|
|
|
|
2008-11-25 00:20:51 +00:00
|
|
|
}
|