From a5ac419236853e3fa3d020abfa072a1555efe85c Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Sun, 25 Oct 2015 14:37:15 +0200 Subject: [PATCH] darwin: erlangR18: add needed inputs for Darwin --- pkgs/development/interpreters/erlang/R18.nix | 4 +++- pkgs/top-level/all-packages.nix | 19 +++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/erlang/R18.nix b/pkgs/development/interpreters/erlang/R18.nix index 7646de28a859..f2392f5f1f5f 100644 --- a/pkgs/development/interpreters/erlang/R18.nix +++ b/pkgs/development/interpreters/erlang/R18.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, perl, gnum4, ncurses, openssl , gnused, gawk, makeWrapper +, AppKit, Carbon, Cocoa , odbcSupport ? false, unixODBC ? null , wxSupport ? true, mesa ? null, wxGTK ? null, xorg ? null, wxmac ? null , javacSupport ? false, openjdk ? null @@ -29,7 +30,8 @@ stdenv.mkDerivation rec { [ perl gnum4 ncurses openssl makeWrapper ] ++ optional wxSupport (if stdenv.isDarwin then [ wxmac ] else [ mesa wxGTK xorg.libX11 ]) ++ optional odbcSupport [ unixODBC ] - ++ optional javacSupport [ openjdk ]; + ++ optional javacSupport [ openjdk ] + ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ]; patchPhase = '' sed -i "s@/bin/rm@rm@" lib/odbc/configure erts/configure ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 759174ce985f..c6881d1370ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4913,10 +4913,21 @@ let erlangR17_odbc = callPackage ../development/interpreters/erlang/R17.nix { odbcSupport = true; }; erlangR17_javac = callPackage ../development/interpreters/erlang/R17.nix { javacSupport = true; }; erlangR17_odbc_javac = callPackage ../development/interpreters/erlang/R17.nix { javacSupport = true; odbcSupport = true; }; - erlangR18 = callPackage ../development/interpreters/erlang/R18.nix { }; - erlangR18_odbc = callPackage ../development/interpreters/erlang/R18.nix { odbcSupport = true; }; - erlangR18_javac = callPackage ../development/interpreters/erlang/R18.nix { javacSupport = true; }; - erlangR18_odbc_javac = callPackage ../development/interpreters/erlang/R18.nix { javacSupport = true; odbcSupport = true; }; + erlangR18 = callPackage ../development/interpreters/erlang/R18.nix { + inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; + }; + erlangR18_odbc = callPackage ../development/interpreters/erlang/R18.nix { + inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; + odbcSupport = true; + }; + erlangR18_javac = callPackage ../development/interpreters/erlang/R18.nix { + inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; + javacSupport = true; + }; + erlangR18_odbc_javac = callPackage ../development/interpreters/erlang/R18.nix { + inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; + javacSupport = true; odbcSupport = true; + }; erlang = erlangR18; erlang_odbc = erlangR18_odbc; erlang_javac = erlangR18_javac;