nixpkgs-suyu/nix-dist/do-it.nix
Eelco Dolstra 91aafbcae4 * Automatically build and upload RPMs. Building an RPM is not a pure Nix action, but
we use Nix to do it anyway.

svn path=/nixpkgs/trunk/; revision=610
2004-01-02 16:39:35 +00:00

32 lines
782 B
Nix

let {
system = "i686-linux";
pkgs = (import ../pkgs/system/all-packages.nix) {system = system;};
stdenv = pkgs.stdenv_;
sourcedist = (import ./nix-source-dist.nix) {
stdenv = stdenv;
autoconf = pkgs.autoconf;
automake = pkgs.automake;
libxml2 = pkgs.libxml2;
libxslt = pkgs.libxslt;
docbook_dtd = pkgs.docbook_xml_dtd;
docbook_xslt = pkgs.docbook_xml_xslt;
fetchurl = pkgs.fetchurl;
fetchsvn = pkgs.fetchsvn;
rev = import ./head-revision.nix;
};
testbuild = (import ./nix-test-build.nix) {
stdenv = stdenv;
getopt = pkgs.getopt;
src = sourcedist;
};
rpmbuild = (import ./nix-rpm-build.nix) {
stdenv = stdenv;
getopt = pkgs.getopt;
src = sourcedist;
};
body = [sourcedist testbuild rpmbuild];
}