2008-04-11 11:21:27 +02:00
|
|
|
{stdenv, fetchurl, ncurses, readline
|
|
|
|
, lib
|
|
|
|
, zlib ? null
|
|
|
|
, openssl ? null
|
|
|
|
}:
|
2005-05-05 01:36:28 +02:00
|
|
|
|
2008-08-03 00:25:54 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.8.7-p22";
|
|
|
|
name = "ruby-${version}";
|
2005-05-05 01:36:28 +02:00
|
|
|
src = fetchurl {
|
2008-08-03 00:25:54 +02:00
|
|
|
url = "ftp://ftp.ruby-lang.org/pub/ruby/${name}.tar.gz";
|
|
|
|
sha256 = "0wn04bzmgmn2bvpwjh3b403dp3iqiygd75s76136h1khy6lydr6j";
|
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]
|
|
|
|
++(lib.optional (zlib != null) zlib)
|
|
|
|
++(lib.optional (openssl != null) openssl)
|
|
|
|
;
|
2008-08-03 00:25:54 +02:00
|
|
|
configureFlags = ["--enable-shared" "--enable-pthread"] ;
|
|
|
|
|
|
|
|
|
|
|
|
# NIX_LDFLAGS = "-lpthread -lutil";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = "Ruby";
|
|
|
|
homepage = "http://www.ruby-lang.org/en/";
|
|
|
|
description = "The Ruby language";
|
|
|
|
};
|
2005-05-05 01:36:28 +02:00
|
|
|
}
|