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