lol

Merge #197116: zlib: cleanup

...into staging

+8 -12
+8 -12
pkgs/development/libraries/zlib/default.nix
··· 21 22 assert splitStaticOutput -> static; 23 24 - stdenv.mkDerivation (rec { 25 pname = "zlib"; 26 version = "1.2.13"; 27 ··· 47 ++ lib.optional splitStaticOutput "static"; 48 setOutputFlags = false; 49 outputDoc = "dev"; # single tiny man3 page 50 51 # For zlib's ./configure (as of verion 1.2.11), the order 52 # of --static/--shared flags matters! ··· 119 "SHARED_MODE=1" 120 ]; 121 122 - passthru = { 123 - inherit version; 124 - }; 125 - 126 meta = with lib; { 127 homepage = "https://zlib.net"; 128 description = "Lossless data-compression library"; 129 license = licenses.zlib; 130 platforms = platforms.all; 131 }; 132 - } // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) { 133 - preConfigure = '' 134 - export CHOST=${stdenv.hostPlatform.config} 135 - ''; 136 - } // lib.optionalAttrs (stdenv.hostPlatform.libc == "msvcrt") { 137 - dontConfigure = true; 138 - })
··· 21 22 assert splitStaticOutput -> static; 23 24 + stdenv.mkDerivation rec { 25 pname = "zlib"; 26 version = "1.2.13"; 27 ··· 47 ++ lib.optional splitStaticOutput "static"; 48 setOutputFlags = false; 49 outputDoc = "dev"; # single tiny man3 page 50 + 51 + dontConfigure = stdenv.hostPlatform.libc == "msvcrt"; 52 + 53 + preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 54 + export CHOST=${stdenv.hostPlatform.config} 55 + ''; 56 57 # For zlib's ./configure (as of verion 1.2.11), the order 58 # of --static/--shared flags matters! ··· 125 "SHARED_MODE=1" 126 ]; 127 128 meta = with lib; { 129 homepage = "https://zlib.net"; 130 description = "Lossless data-compression library"; 131 license = licenses.zlib; 132 platforms = platforms.all; 133 }; 134 + }