summary refs log tree commit diff
path: root/pkgs/development/libraries/zlib/default.nix
blob: 12a72cf5ed33d64632e7951e6cc6187ba9543857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{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;
}