lol

Merge #197116: zlib: cleanup

...into staging

+8 -12
+8 -12
pkgs/development/libraries/zlib/default.nix
··· 21 21 22 22 assert splitStaticOutput -> static; 23 23 24 - stdenv.mkDerivation (rec { 24 + stdenv.mkDerivation rec { 25 25 pname = "zlib"; 26 26 version = "1.2.13"; 27 27 ··· 47 47 ++ lib.optional splitStaticOutput "static"; 48 48 setOutputFlags = false; 49 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 + ''; 50 56 51 57 # For zlib's ./configure (as of verion 1.2.11), the order 52 58 # of --static/--shared flags matters! ··· 119 125 "SHARED_MODE=1" 120 126 ]; 121 127 122 - passthru = { 123 - inherit version; 124 - }; 125 - 126 128 meta = with lib; { 127 129 homepage = "https://zlib.net"; 128 130 description = "Lossless data-compression library"; 129 131 license = licenses.zlib; 130 132 platforms = platforms.all; 131 133 }; 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 - }) 134 + }