From 4b9349698ae7c6a7032b9d7659a5d2afddd996ab Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Sat, 14 Jan 2017 20:08:40 +0100 Subject: [PATCH] pangomm: Add ApplicationServices on darwin --- pkgs/development/libraries/pangomm/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/pangomm/default.nix b/pkgs/development/libraries/pangomm/default.nix index b99498f2013e..b5ec5198975e 100644 --- a/pkgs/development/libraries/pangomm/default.nix +++ b/pkgs/development/libraries/pangomm/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, pango, glibmm, cairomm }: +{ stdenv, fetchurl, pkgconfig, pango, glibmm, cairomm +, ApplicationServices }: let ver_maj = "2.40"; @@ -14,7 +15,9 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig ] ++ stdenv.lib.optional stdenv.isDarwin [ + ApplicationServices + ]; propagatedBuildInputs = [ pango glibmm cairomm ]; doCheck = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d35ed158e64a..eda77bf4754e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7492,7 +7492,9 @@ in cairomm = callPackage ../development/libraries/cairomm { }; pango = callPackage ../development/libraries/pango { }; - pangomm = callPackage ../development/libraries/pangomm { }; + pangomm = callPackage ../development/libraries/pangomm { + inherit (darwin.apple_sdk.frameworks) ApplicationServices; + }; pangox_compat = callPackage ../development/libraries/pangox-compat { };