From 0ef3e9e14812f2ff3f0224b5644f8e09a75505e7 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Apr 2008 09:21:27 +0000 Subject: [PATCH] Added zlib and OpenSSL optional support to ruby svn path=/nixpkgs/trunk/; revision=11556 --- pkgs/development/interpreters/ruby/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 9304f0d0b3e..6b437900ca1 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -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) + ; }