variability, add a static variant, default is to use shared libraries
svn path=/nixpkgs/trunk/; revision=5932
This commit is contained in:
parent
46d7a1ac7f
commit
55e322ca6c
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl}:
|
{stdenv, fetchurl, static ? false}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "zlib-1.2.3";
|
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;
|
url = http://nix.cs.uu.nl/dist/tarballs/zlib-1.2.3.tar.gz;
|
||||||
md5 = "debc62758716a169df9f62e6ab2bc634";
|
md5 = "debc62758716a169df9f62e6ab2bc634";
|
||||||
};
|
};
|
||||||
configureFlags = "--shared";
|
configureFlags = if static then "" else "--shared";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user