3
0
Fork 0
forked from mirrors/nixpkgs

erlangR16: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:15:37 -05:00
parent 9610fc55ef
commit fa4b1ee68a
2 changed files with 7 additions and 3 deletions

View file

@ -2,7 +2,8 @@
, gnused, gawk, makeWrapper
, odbcSupport ? false, unixODBC ? null
, wxSupport ? false, mesa ? null, wxGTK ? null, xorg ? null
, enableDebugInfo ? false }:
, enableDebugInfo ? false
, Carbon ? null, Cocoa ? null }:
assert wxSupport -> mesa != null && wxGTK != null && xorg != null;
assert odbcSupport -> unixODBC != null;
@ -23,7 +24,8 @@ stdenv.mkDerivation rec {
buildInputs =
[ perl gnum4 ncurses openssl makeWrapper
] ++ optional wxSupport [ mesa wxGTK xorg.libX11 ]
++ optional odbcSupport [ unixODBC ];
++ optional odbcSupport [ unixODBC ]
++ optional stdenv.isDarwin [ Carbon Cocoa ];
patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure '';

View file

@ -5666,7 +5666,9 @@ in
clooj = callPackage ../development/interpreters/clojure/clooj.nix { };
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix { };
erlangR16 = callPackage ../development/interpreters/erlang/R16.nix {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
};
erlangR16_odbc = callPackage ../development/interpreters/erlang/R16.nix { odbcSupport = true; };
erlangR17 = callPackage ../development/interpreters/erlang/R17.nix {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;