mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
Added zlib and OpenSSL optional support to ruby
svn path=/nixpkgs/trunk/; revision=11556
This commit is contained in:
parent
772fd74b99
commit
0ef3e9e148
@ -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)
|
||||
;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user