diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-12-14 14:31:56 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-12-14 14:31:56 +0000 |
commit | cfde88976ba4cddd01b1bb28b40afd12ea93a11d (patch) | |
tree | 71b2dcebf820baafe7e54114f37e274e2a01da47 /pkgs/development/libraries/gmp | |
parent | 9eb4c4ddef57a82385de4ba7bf45e798d7ec6cbf (diff) | |
download | nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar.gz nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar.bz2 nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar.lz nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar.xz nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.tar.zst nixpkgs-cfde88976ba4cddd01b1bb28b40afd12ea93a11d.zip |
* Streamline the stdenv bootstrap and resulting closure by removing
some redundant builds (e.g., GMP was built three times). * Updated GMP to 5.0.2. * Updated PPL to 0.11.2. * Remove ad hoc flags to build GCC's dependencies statically. Instead, use the ‘makeStaticLibraries’ stdenv adapter. * Build GMP with C++ support by default. svn path=/nixpkgs/branches/stdenv-updates/; revision=30891
Diffstat (limited to 'pkgs/development/libraries/gmp')
-rw-r--r-- | pkgs/development/libraries/gmp/default.nix | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/pkgs/development/libraries/gmp/default.nix b/pkgs/development/libraries/gmp/default.nix index 1b079c05158..a633177c128 100644 --- a/pkgs/development/libraries/gmp/default.nix +++ b/pkgs/development/libraries/gmp/default.nix @@ -1,28 +1,19 @@ -{stdenv, fetchurl, m4, cxx ? true, static ? false}: - -let - staticFlags = stdenv.lib.optionals static - [ "--enable-static" "--disable-shared" ]; -in +{ stdenv, fetchurl, m4, cxx ? true }: stdenv.mkDerivation rec { - name = "gmp-5.0.1"; + name = "gmp-5.0.2"; src = fetchurl { url = "mirror://gnu/gmp/${name}.tar.bz2"; - sha256 = "1yrr14l6vvhm1g27y8nb3c75j0i4ii4k1gw7ik08safk3zq119m2"; + sha256 = "0a2ch2kpbzrsf3c1pfc6sph87hk2xmwa6np3sn2rzsflzmvdphnv"; }; - buildNativeInputs = [m4]; + buildNativeInputs = [ m4 ]; configureFlags = # Build a "fat binary", with routines for several sub-architectures (x86). [ "--enable-fat" ] - - ++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]) - ++ staticFlags; - - dontDisableStatic = if static then true else false; + ++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]); doCheck = true; |