1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00
nixpkgs/pkgs/development/interpreters/ruby/default.nix
Michael Raskin 0ef3e9e148 Added zlib and OpenSSL optional support to ruby
svn path=/nixpkgs/trunk/; revision=11556
2008-04-11 09:21:27 +00:00

19 lines
391 B
Nix

{stdenv, fetchurl, ncurses, readline
, lib
, zlib ? null
, openssl ? null
}:
stdenv.mkDerivation {
name = "ruby-1.8.6";
src = fetchurl {
url = ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz;
md5 = "23d2494aa94e7ae1ecbbb8c5e1507683";
};
buildInputs = [ncurses readline]
++(lib.optional (zlib != null) zlib)
++(lib.optional (openssl != null) openssl)
;
}