* Added a function binaryTarball to do a DESTDIR build into /usr/local. Useful for making statically linked binaries. However, it may be better to do this in a VM (since if you do it in a Nix build environment, you can still end up with a lot of Nix dependencies in your binaries, even if you do static linking). svn path=/nixpkgs/trunk/; revision=14726
36 lines
697 B
Nix
36 lines
697 B
Nix
{pkgs}:
|
|
|
|
with pkgs;
|
|
|
|
rec {
|
|
|
|
sourceTarball = args: import ./source-tarball.nix (
|
|
{ inherit autoconf automake libtool;
|
|
stdenv = stdenvNew;
|
|
} // args);
|
|
|
|
makeSourceTarball = sourceTarball; # compatibility
|
|
|
|
binaryTarball = args: import ./binary-tarball.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);
|
|
|
|
}
|