tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge #197116: zlib: cleanup
...into staging
Vladimír Čunát
3 years ago
40192db2
e5617445
+8
-12
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
zlib
default.nix
+8
-12
pkgs/development/libraries/zlib/default.nix
···
21
21
22
22
assert splitStaticOutput -> static;
23
23
24
24
-
stdenv.mkDerivation (rec {
24
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
50
+
51
51
+
dontConfigure = stdenv.hostPlatform.libc == "msvcrt";
52
52
+
53
53
+
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
54
54
+
export CHOST=${stdenv.hostPlatform.config}
55
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
122
-
passthru = {
123
123
-
inherit version;
124
124
-
};
125
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
132
-
} // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
133
133
-
preConfigure = ''
134
134
-
export CHOST=${stdenv.hostPlatform.config}
135
135
-
'';
136
136
-
} // lib.optionalAttrs (stdenv.hostPlatform.libc == "msvcrt") {
137
137
-
dontConfigure = true;
138
138
-
})
134
134
+
}