···11{ stdenv, fetchurl, m4, cxx ? true }:
2233-stdenv.mkDerivation rec {
33+let self = stdenv.mkDerivation rec {
44 name = "gmp-4.3.2";
5566 src = fetchurl {
77 url = "mirror://gnu/gmp/${name}.tar.bz2";
88 sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck";
99 };
1010+1111+ #outputs TODO: split $cxx due to libstdc++ dependency
1212+ # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added
1313+ # - see #5855 for related discussion
1414+ outputs = [ "out" "dev" "info" ];
1515+ passthru.static = self.out;
10161117 nativeBuildInputs = [ m4 ];
1218···6066 maintainers = [ ];
6167 platforms = stdenv.lib.platforms.all;
6268 };
6363-}
6969+};
7070+ in self
+8-3
pkgs/development/libraries/gmp/5.1.x.nix
···2233with { inherit (stdenv.lib) optional optionalString; };
4455-stdenv.mkDerivation rec {
55+let self = stdenv.mkDerivation rec {
66 name = "gmp-5.1.3";
7788 src = fetchurl { # we need to use bz2, others aren't in bootstrapping stdenv
···1010 sha256 = "0q5i39pxrasgn9qdxzpfbwhh11ph80p57x6hf48m74261d97j83m";
1111 };
12121313- outputs = [ "out" "info" ];
1313+ #outputs TODO: split $cxx due to libstdc++ dependency
1414+ # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added
1515+ # - see #5855 for related discussion
1616+ outputs = [ "out" "dev" "info" ];
1717+ passthru.static = self.out;
14181519 nativeBuildInputs = [ m4 ];
1620···7680 platforms = platforms.all;
7781 maintainers = [ maintainers.peti ];
7882 };
7979-}
8383+};
8484+ in self
+1-1
pkgs/development/libraries/gmp/6.x.nix
···1010 sha256 = "1mpzprdzkgfpdc1v2lf4dxlxps4x8bvmzvd8n1ri6gw9y9jrh458";
1111 };
12121313- #outputs TODO: split $cxx due to libstdc++ dependency; maybe port to gmp5;
1313+ #outputs TODO: split $cxx due to libstdc++ dependency
1414 # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added
1515 # - see #5855 for related discussion
1616 outputs = [ "out" "dev" "info" ];