variability, add a static variant, default is to use shared libraries

svn path=/nixpkgs/trunk/; revision=5932
This commit is contained in:
Armijn Hemel 2006-07-25 08:24:22 +00:00
parent 46d7a1ac7f
commit 55e322ca6c

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, static ? false}:
stdenv.mkDerivation {
name = "zlib-1.2.3";
@ -6,5 +6,5 @@ stdenv.mkDerivation {
url = http://nix.cs.uu.nl/dist/tarballs/zlib-1.2.3.tar.gz;
md5 = "debc62758716a169df9f62e6ab2bc634";
};
configureFlags = "--shared";
configureFlags = if static then "" else "--shared";
}