From 3ea269a7e673e07b2f0a2b6a88ecd0212a87c535 Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Sun, 25 Oct 2015 14:37:31 +0200 Subject: [PATCH] darwin: rabbitmq_server: add needed inputs for Darwin --- pkgs/servers/amqp/rabbitmq-server/default.nix | 8 ++++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/amqp/rabbitmq-server/default.nix b/pkgs/servers/amqp/rabbitmq-server/default.nix index 3e8ec09a0b05..5bf3f2e693e6 100644 --- a/pkgs/servers/amqp/rabbitmq-server/default.nix +++ b/pkgs/servers/amqp/rabbitmq-server/default.nix @@ -1,5 +1,8 @@ { stdenv, fetchurl, erlang, python, libxml2, libxslt, xmlto -, docbook_xml_dtd_45, docbook_xsl, zip, unzip }: +, docbook_xml_dtd_45, docbook_xsl, zip, unzip + +, AppKit, Carbon, Cocoa +}: stdenv.mkDerivation rec { name = "rabbitmq-server-${version}"; @@ -12,7 +15,8 @@ stdenv.mkDerivation rec { }; buildInputs = - [ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ]; + [ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ] + ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ]; preBuild = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6881d1370ff..94e42523eb22 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9319,7 +9319,9 @@ let qpid-cpp = callPackage ../servers/amqp/qpid-cpp { }; - rabbitmq_server = callPackage ../servers/amqp/rabbitmq-server { }; + rabbitmq_server = callPackage ../servers/amqp/rabbitmq-server { + inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa; + }; radius = callPackage ../servers/radius { };