Author: ludo
Date: Mon Aug 29 21:47:22 2011
New Revision: 28907
URL: https://svn.nixos.org/websvn/nix/?rev=28907&sc=1
Log:
MPFR: Add `build_with_old_gmp' job.
Added:
hydra-config/gnu/trunk/gmp/4.3.2.nix
Modified:
hydra-config/gnu/trunk/mpfr/release.nix
Added: hydra-config/gnu/trunk/gmp/4.3.2.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ hydra-config/gnu/trunk/gmp/4.3.2.nix Mon Aug 29 21:47:22 2011
(r28907)
@@ -0,0 +1,24 @@
+{stdenv, fetchurl, m4, cxx ? true}:
+
+stdenv.mkDerivation rec {
+ name = "gmp-4.3.2";
+
+ src = fetchurl {
+ url = "mirror://gnu/gmp/${name}.tar.bz2";
+ sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck";
+ };
+
+ buildNativeInputs = [m4];
+
+ configureFlags = (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ])
+ ++ (stdenv.lib.optional (stdenv.system != "i686-darwin")
+ [ "--enable-fat" ]);
+
+ doCheck = true;
+
+ meta = {
+ description = "A free library for arbitrary precision arithmetic,
operating on signed integers, rational numbers, and floating point numbers";
+ homepage = http://gmplib.org/;
+ license = "LGPL";
+ };
+}
Modified: hydra-config/gnu/trunk/mpfr/release.nix
==============================================================================
--- hydra-config/gnu/trunk/mpfr/release.nix Mon Aug 29 21:46:22 2011
(r28906)
+++ hydra-config/gnu/trunk/mpfr/release.nix Mon Aug 29 21:47:22 2011
(r28907)
@@ -40,25 +40,54 @@
maintainers =
[ "Paul Zimmermann <[email protected]>" ];
};
-in
- import ../gnu-jobs.nix {
- name = "mpfr";
- src = mpfrSrc;
- inherit nixpkgs meta;
- useLatestGnulib = false;
- enableGnuCrossBuild = true;
-
- customEnv = {
-
- tarball = pkgs: {
- buildInputs = [ gmp ]
- ++ (with pkgs; [ xz zip texinfo automake111x perl ]);
- autoconfPhase = "autoreconf -vfi";
- patches = [ ./ck-version-info.patch ];
- };
- build = pkgs: { buildInputs = [ gmp ]; };
- coverage = pkgs: { buildInputs = [ gmp ]; };
- xbuild_gnu = pkgs: { buildInputs = [ gmp_xgnu ]; };
+ # The minimum required GMP version.
+ old_gmp = pkgs:
+ import ../gmp/4.3.2.nix {
+ inherit (pkgs) stdenv fetchurl m4;
+ };
+
+ jobs =
+ import ../gnu-jobs.nix {
+ name = "mpfr";
+ src = mpfrSrc;
+ inherit nixpkgs meta;
+ useLatestGnulib = false;
+ enableGnuCrossBuild = true;
+
+ customEnv = {
+
+ tarball = pkgs: {
+ buildInputs = [ gmp ]
+ ++ (with pkgs; [ xz zip texinfo automake111x perl ]);
+ autoconfPhase = "autoreconf -vfi";
+ patches = [ ./ck-version-info.patch ];
+ };
+
+ build = pkgs: { buildInputs = [ gmp ]; };
+ coverage = pkgs: { buildInputs = [ gmp ]; };
+ xbuild_gnu = pkgs: { buildInputs = [ gmp_xgnu ]; };
+ };
};
- }
+in
+ jobs
+
+ //
+
+ {
+ # Extra job to build with an old GMP.
+ build_with_old_gmp =
+ { system ? "x86_64-linux"
+ , tarball ? jobs.tarball
+ }:
+
+ let
+ pkgs = import nixpkgs { inherit system; };
+ build = jobs.build {};
+ in
+ pkgs.releaseTools.nixBuild ({
+ src = tarball;
+ buildInputs = [ (old_gmp pkgs) ];
+ inherit (build) name meta succeedOnFailure keepBuildDirectory;
+ });
+ }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits