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