From 2c55eab22f41c72024858521b03d492906724d7b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 6 Nov 2008 14:35:16 +0000 Subject: * Hydra job expression for patchelf. --- release.nix | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 release.nix diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..291d0e0 --- /dev/null +++ b/release.nix @@ -0,0 +1,57 @@ +let jobs = rec { + + + tarball = + { patchelfSrc ? {path = ./.;} + , nixpkgs ? {path = ../nixpkgs;} + , release ? {path = ../release;} + }: + + with import "${release.path}/generic-dist" nixpkgs.path; + + makeSourceTarball { + inherit (pkgs) stdenv; + name = "patchelf-tarball"; + src = patchelfSrc; + buildInputs = [pkgs.autoconf pkgs.automake]; + }; + + + build = + { tarball ? {path = jobs.tarball {};} + , nixpkgs ? {path = ../nixpkgs;} + , release ? {path = ../release;} + #, system ? "i686-linux" + }: + + let system = "i686-linux"; in + + with import "${release.path}/generic-dist" nixpkgs.path; + + nixBuild { + inherit (pkgsFun {inherit system;}) stdenv; + name = "patchelf-build"; + src = tarball.path; + }; + + + rpm = + { tarball ? {path = jobs.tarball {};} + , nixpkgs ? {path = ../nixpkgs;} + , release ? {path = ../release;} + #, system ? "i686-linux" + }: + + let system = "i686-linux"; in + + with import "${release.path}/generic-dist" nixpkgs.path; + + rpmBuild { + inherit (pkgsFun {inherit system;}) stdenv; + name = "patchelf-rpm"; + src = tarball.path; + diskImage = diskImages_i686.fedora9i386; + }; + + +}; in jobs -- cgit v0.12