Added zlib and OpenSSL optional support to ruby

svn path=/nixpkgs/trunk/; revision=11556
This commit is contained in:
Michael Raskin 2008-04-11 09:21:27 +00:00
parent 772fd74b99
commit 0ef3e9e148

View File

@ -1,4 +1,8 @@
{stdenv, fetchurl, ncurses, readline}:
{stdenv, fetchurl, ncurses, readline
, lib
, zlib ? null
, openssl ? null
}:
stdenv.mkDerivation {
name = "ruby-1.8.6";
@ -7,5 +11,8 @@ stdenv.mkDerivation {
md5 = "23d2494aa94e7ae1ecbbb8c5e1507683";
};
buildInputs = [ncurses readline];
buildInputs = [ncurses readline]
++(lib.optional (zlib != null) zlib)
++(lib.optional (openssl != null) openssl)
;
}