1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/development/interpreters/ruby/default.nix

19 lines
391 B
Nix
Raw Normal View History

{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)
;
}