nixpkgs/pkgs/development/interpreters/ruby/default.nix
Eelco Dolstra 0e6ea04477 * Update Ruby to 1.8.7-p299 to fix a build problem caused by the
upgrade to OpenSSL 1.0.0
  (http://hydra.nixos.org/build/494496/nixlog/1/raw).

svn path=/nixpkgs/branches/x-updates/; revision=22700
2010-07-22 09:49:48 +00:00

37 lines
854 B
Nix

{ stdenv, fetchurl, ncurses, readline
, zlib ? null
, openssl ? null
, gdbm ? null
}:
stdenv.mkDerivation rec {
version = "1.8.7-p299";
name = "ruby-${version}";
src = fetchurl {
url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz";
sha256 = "0ys2lpri2w3174axhi96vq17lrvk2ngj7f2m42a9008a7n79rj9j";
};
buildInputs = [ncurses readline]
++ (stdenv.lib.optional (zlib != null) zlib)
++ (stdenv.lib.optional (openssl != null) openssl)
++ (stdenv.lib.optional (gdbm != null) gdbm);
configureFlags = ["--enable-shared" "--enable-pthread"];
# NIX_LDFLAGS = "-lpthread -lutil";
meta = {
license = "Ruby";
homepage = "http://www.ruby-lang.org/en/";
description = "The Ruby language";
};
passthru = {
# install ruby libs into "$out/${ruby.libPath}"
libPath = "lib/ruby-1.8";
};
}