nixpkgs/pkgs/development/libraries/zlib/default.nix
Eelco Dolstra 659023aa97 * Hack for building zlib on Cygwin (NIXPKGS-28).
svn path=/nixpkgs/trunk/; revision=8768
2007-05-24 16:05:40 +00:00

14 lines
387 B
Nix

{stdenv, fetchurl, static ? false}:
stdenv.mkDerivation {
name = "zlib-1.2.3";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/zlib-1.2.3.tar.gz;
md5 = "debc62758716a169df9f62e6ab2bc634";
};
configureFlags = if static then "" else "--shared";
# zlib doesn't like the automatic --disable-shared from the Cygwin stdenv.
cygwinConfigureEnableShared = true;
}