Fix GMP build on Illumos.
- Use smaller xz sources instead of bz2 sources.
This commit is contained in:
parent
fcce211c8e
commit
82240c899a
@ -4,8 +4,8 @@ stdenv.mkDerivation rec {
|
|||||||
name = "gmp-5.1.1";
|
name = "gmp-5.1.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [ "mirror://gnu/gmp/${name}.tar.bz2" "ftp://ftp.gmplib.org/pub/${name}/${name}.tar.bz2" ];
|
urls = [ "mirror://gnu/gmp/${name}.tar.xz" "ftp://ftp.gmplib.org/pub/${name}/${name}.tar.xz" ];
|
||||||
sha256 = "1bdgf04k2i12pfivxgjq68iarz3ngix9hpzbmkgijrdk92gpgm50";
|
sha256 = "1hili06lcf0clg5qfvz7knm6pmj6ab54yhsvskp1mdny5xw4vmjb";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ m4 ];
|
nativeBuildInputs = [ m4 ];
|
||||||
@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
|
|||||||
# (x86), except on Solaris where some tests crash with "Memory fault".
|
# (x86), except on Solaris where some tests crash with "Memory fault".
|
||||||
# See <http://hydra.nixos.org/build/2760931>, for instance.
|
# See <http://hydra.nixos.org/build/2760931>, for instance.
|
||||||
(stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat")
|
(stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat")
|
||||||
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ]);
|
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ])
|
||||||
|
++ (if stdenv.is64bit then [ "--with-pic" ] else []);
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user