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