ruby19: fix on darwin
* seems to require readline even when cursesSupport is not enabled
This commit is contained in:
parent
ccda14879e
commit
cfab5a8ecf
@ -30,7 +30,12 @@ stdenv.mkDerivation rec {
|
|||||||
++ (op zlibSupport zlib)
|
++ (op zlibSupport zlib)
|
||||||
++ (op opensslSupport openssl)
|
++ (op opensslSupport openssl)
|
||||||
++ (op gdbmSupport gdbm)
|
++ (op gdbmSupport gdbm)
|
||||||
++ (op yamlSupport libyaml);
|
++ (op yamlSupport libyaml)
|
||||||
|
# Looks like ruby fails to build on darwin without readline even if curses
|
||||||
|
# support is not enabled, so add readline to the build inputs if curses
|
||||||
|
# support is disabled (if it's enabled, we already have it) and we're
|
||||||
|
# running on darwin
|
||||||
|
++ (op (!cursesSupport && stdenv.isDarwin) readline);
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
patches = [ ./ruby19-parallel-install.patch ];
|
patches = [ ./ruby19-parallel-install.patch ];
|
||||||
@ -42,10 +47,11 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = "mkdir -pv $out/${passthru.gemPath}";
|
postInstall = "mkdir -pv $out/${passthru.gemPath}";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
license = "Ruby";
|
license = "Ruby";
|
||||||
homepage = "http://www.ruby-lang.org/en/";
|
homepage = "http://www.ruby-lang.org/en/";
|
||||||
description = "The Ruby language";
|
description = "The Ruby language";
|
||||||
platforms = stdenv.lib.platforms.all;
|
maintainers = with stdenv.lib.maintainers; [ lovek323 ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = rec {
|
passthru = rec {
|
||||||
|
Loading…
Reference in New Issue
Block a user