mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
0ff6f51703
They're so trivial that we don't want to copy all those dependencies to remote machines.
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{pkgs}:
|
|
|
|
with pkgs;
|
|
|
|
rec {
|
|
|
|
sourceTarball = args: import ./source-tarball.nix (
|
|
{ inherit stdenv autoconf automake libtool;
|
|
} // args);
|
|
|
|
makeSourceTarball = sourceTarball; # compatibility
|
|
|
|
binaryTarball = args: import ./binary-tarball.nix (
|
|
{ inherit stdenv;
|
|
} // args);
|
|
|
|
antBuild = args: import ./ant-build.nix (
|
|
{ inherit pkgs;
|
|
} // args);
|
|
|
|
mvnBuild = args: import ./maven-build.nix (
|
|
{ inherit stdenv;
|
|
} // args);
|
|
|
|
nixBuild = args: import ./nix-build.nix (
|
|
{ inherit stdenv;
|
|
} // args);
|
|
|
|
coverageAnalysis = args: nixBuild (
|
|
{ inherit lcov;
|
|
doCoverageAnalysis = true;
|
|
} // args);
|
|
|
|
rpmBuild = args: import ./rpm-build.nix (
|
|
{ inherit vmTools;
|
|
} // args);
|
|
|
|
debBuild = args: import ./debian-build.nix (
|
|
{ inherit stdenv vmTools checkinstall;
|
|
} // args);
|
|
|
|
aggregate =
|
|
{ name, constituents, meta ? { } }:
|
|
pkgs.runCommand name
|
|
{ inherit constituents meta;
|
|
preferLocalBuild = true;
|
|
_hydraAggregate = true;
|
|
}
|
|
''
|
|
mkdir -p $out/nix-support
|
|
touch $out/nix-support/hydra-build-products
|
|
echo $constituents > $out/nix-support/hydra-aggregate-constituents
|
|
|
|
# Propagate build failures.
|
|
for i in $constituents; do
|
|
if [ -e $i/nix-support/failed ]; then
|
|
touch $out/nix-support/failed
|
|
fi
|
|
done
|
|
'';
|
|
|
|
}
|