2008-04-11 13:21:27 +04:00
|
|
|
{stdenv, fetchurl, ncurses, readline
|
|
|
|
, lib
|
|
|
|
, zlib ? null
|
|
|
|
, openssl ? null
|
2009-08-21 00:19:01 +04:00
|
|
|
, gdbm ? null
|
2009-06-30 18:29:17 +04:00
|
|
|
, makeOverridable
|
2008-04-11 13:21:27 +04:00
|
|
|
}:
|
2005-05-05 03:36:28 +04:00
|
|
|
|
2009-06-30 18:29:17 +04:00
|
|
|
makeOverridable (stdenv.mkDerivation) rec {
|
2008-08-14 15:47:51 +04:00
|
|
|
version = "1.8.7-p72";
|
2008-08-03 02:25:54 +04:00
|
|
|
name = "ruby-${version}";
|
2005-05-05 03:36:28 +04:00
|
|
|
src = fetchurl {
|
2008-08-14 15:47:51 +04:00
|
|
|
url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz";
|
|
|
|
sha256 = "e15ca005076f5d6f91fc856fdfbd071698a4cadac3c6e25855899dba1f6fc5ef";
|
2005-05-05 03:36:28 +04:00
|
|
|
};
|
2006-05-11 04:16:23 +04:00
|
|
|
|
2008-04-11 13:21:27 +04:00
|
|
|
buildInputs = [ncurses readline]
|
|
|
|
++(lib.optional (zlib != null) zlib)
|
|
|
|
++(lib.optional (openssl != null) openssl)
|
2009-08-21 00:19:01 +04:00
|
|
|
++(lib.optional (gdbm != null) gdbm)
|
2008-04-11 13:21:27 +04:00
|
|
|
;
|
2008-08-03 02:25:54 +04:00
|
|
|
configureFlags = ["--enable-shared" "--enable-pthread"] ;
|
|
|
|
|
|
|
|
|
|
|
|
# NIX_LDFLAGS = "-lpthread -lutil";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = "Ruby";
|
|
|
|
homepage = "http://www.ruby-lang.org/en/";
|
|
|
|
description = "The Ruby language";
|
|
|
|
};
|
2009-08-21 00:18:58 +04:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
# install ruby libs into "$out/${ruby.libPath}"
|
|
|
|
libPath = "lib/ruby-1.8";
|
|
|
|
};
|
2005-05-05 03:36:28 +04:00
|
|
|
}
|