ruby: fix darwin dependencies

This commit is contained in:
Daiderd Jordan 2018-05-04 19:56:38 +02:00
parent f99ded298f
commit 814938a7ce
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 11 additions and 9 deletions

View File

@ -1,8 +1,8 @@
{ stdenv, buildPackages, lib
, fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub
, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, autoreconfHook, bison
, autoconf, darwin ? null
, buildEnv, bundler, bundix, Foundation
, autoconf, libiconv, libobjc, libunwind, Foundation
, buildEnv, bundler, bundix
} @ args:
let
@ -48,8 +48,8 @@ let
, libyaml, yamlSupport ? true
, libffi, fiddleSupport ? true
, autoreconfHook, bison, autoconf
, darwin ? null
, buildEnv, bundler, bundix, Foundation
, buildEnv, bundler, bundix
, libiconv, libobjc, libunwind, Foundation
}:
let rubySrc =
if useRailsExpress then fetchFromGitHub {
@ -93,9 +93,8 @@ let
# 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)
++ (op (isRuby25 && stdenv.isDarwin) Foundation)
++ (ops stdenv.isDarwin (with darwin; [ libiconv libobjc libunwind ]));
++ op (!cursesSupport && stdenv.isDarwin) readline
++ ops stdenv.isDarwin [ libiconv libobjc libunwind Foundation ];
enableParallelBuilding = true;

View File

@ -7355,7 +7355,10 @@ with pkgs;
bundlerEnv = callPackage ../development/ruby-modules/bundler-env { };
bundlerApp = callPackage ../development/ruby-modules/bundler-app { };
inherit (callPackage ../development/interpreters/ruby { inherit (darwin.apple_sdk.frameworks) Foundation; })
inherit (callPackage ../development/interpreters/ruby {
inherit (darwin) libiconv libobjc libunwind;
inherit (darwin.apple_sdk.frameworks) Foundation;
})
ruby_2_3
ruby_2_4
ruby_2_5;