nixpkgs/pkgs/development/libraries/zlib/default.nix
Armijn Hemel 55e322ca6c variability, add a static variant, default is to use shared libraries
svn path=/nixpkgs/trunk/; revision=5932
2006-07-25 08:24:22 +00:00

11 lines
271 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";
}