Merging from trunk, partially, to get rid of the annoying failing commits from

svn when files were removed, recreated and whatever...
 svn merge -r 18479:18485 ^/nixpkgs/trunk



svn path=/nixpkgs/branches/stdenv-updates/; revision=18659
This commit is contained in:
Lluís Batlle i Rossell
2009-11-26 21:34:53 +00:00
20 changed files with 58 additions and 505 deletions

View File

@@ -1,26 +1,25 @@
{stdenv, fetchurl, ncurses, readline
, lib
, zlib ? null
, openssl ? null
, gdbm ? null
, makeOverridable
{ stdenv, fetchurl, ncurses, readline
, zlib ? null
, openssl ? null
, gdbm ? null
}:
makeOverridable (stdenv.mkDerivation) rec {
stdenv.mkDerivation rec {
version = "1.8.7-p72";
name = "ruby-${version}";
src = fetchurl {
url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz";
sha256 = "e15ca005076f5d6f91fc856fdfbd071698a4cadac3c6e25855899dba1f6fc5ef";
};
buildInputs = [ncurses readline]
++(lib.optional (zlib != null) zlib)
++(lib.optional (openssl != null) openssl)
++(lib.optional (gdbm != null) gdbm)
;
configureFlags = ["--enable-shared" "--enable-pthread"] ;
++ (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";