Updated Ruby package to support shared libs and pthreads

svn path=/nixpkgs/trunk/; revision=12466
This commit is contained in:
Pjotr Prins
2008-08-02 22:25:54 +00:00
parent f10cfdbcc5
commit bc6b7a3213
2 changed files with 19 additions and 8 deletions
+15 -4
View File
@@ -4,15 +4,26 @@
, openssl ? null
}:
stdenv.mkDerivation {
name = "ruby-1.8.6";
stdenv.mkDerivation rec {
version = "1.8.7-p22";
name = "ruby-${version}";
src = fetchurl {
url = ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz;
md5 = "23d2494aa94e7ae1ecbbb8c5e1507683";
url = "ftp://ftp.ruby-lang.org/pub/ruby/${name}.tar.gz";
sha256 = "0wn04bzmgmn2bvpwjh3b403dp3iqiygd75s76136h1khy6lydr6j";
};
buildInputs = [ncurses readline]
++(lib.optional (zlib != null) zlib)
++(lib.optional (openssl != null) openssl)
;
configureFlags = ["--enable-shared" "--enable-pthread"] ;
# NIX_LDFLAGS = "-lpthread -lutil";
meta = {
license = "Ruby";
homepage = "http://www.ruby-lang.org/en/";
description = "The Ruby language";
};
}