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