lol

gmp{4,5}: Split into multiple outputs

Keep all versions consistent so that e.g. 'gmp.dev' is always available,
regardless of version.

+18 -6
+9 -2
pkgs/development/libraries/gmp/4.3.2.nix
··· 1 1 { stdenv, fetchurl, m4, cxx ? true }: 2 2 3 - stdenv.mkDerivation rec { 3 + let self = stdenv.mkDerivation rec { 4 4 name = "gmp-4.3.2"; 5 5 6 6 src = fetchurl { 7 7 url = "mirror://gnu/gmp/${name}.tar.bz2"; 8 8 sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck"; 9 9 }; 10 + 11 + #outputs TODO: split $cxx due to libstdc++ dependency 12 + # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added 13 + # - see #5855 for related discussion 14 + outputs = [ "out" "dev" "info" ]; 15 + passthru.static = self.out; 10 16 11 17 nativeBuildInputs = [ m4 ]; 12 18 ··· 60 66 maintainers = [ ]; 61 67 platforms = stdenv.lib.platforms.all; 62 68 }; 63 - } 69 + }; 70 + in self
+8 -3
pkgs/development/libraries/gmp/5.1.x.nix
··· 2 2 3 3 with { inherit (stdenv.lib) optional optionalString; }; 4 4 5 - stdenv.mkDerivation rec { 5 + let self = stdenv.mkDerivation rec { 6 6 name = "gmp-5.1.3"; 7 7 8 8 src = fetchurl { # we need to use bz2, others aren't in bootstrapping stdenv ··· 10 10 sha256 = "0q5i39pxrasgn9qdxzpfbwhh11ph80p57x6hf48m74261d97j83m"; 11 11 }; 12 12 13 - outputs = [ "out" "info" ]; 13 + #outputs TODO: split $cxx due to libstdc++ dependency 14 + # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added 15 + # - see #5855 for related discussion 16 + outputs = [ "out" "dev" "info" ]; 17 + passthru.static = self.out; 14 18 15 19 nativeBuildInputs = [ m4 ]; 16 20 ··· 76 80 platforms = platforms.all; 77 81 maintainers = [ maintainers.peti ]; 78 82 }; 79 - } 83 + }; 84 + in self
+1 -1
pkgs/development/libraries/gmp/6.x.nix
··· 10 10 sha256 = "1mpzprdzkgfpdc1v2lf4dxlxps4x8bvmzvd8n1ri6gw9y9jrh458"; 11 11 }; 12 12 13 - #outputs TODO: split $cxx due to libstdc++ dependency; maybe port to gmp5; 13 + #outputs TODO: split $cxx due to libstdc++ dependency 14 14 # maybe let ghc use a version with *.so shared with rest of nixpkgs and *.a added 15 15 # - see #5855 for related discussion 16 16 outputs = [ "out" "dev" "info" ];