about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohannes Bornhold <johannes@bornhold.name>2017-01-14 20:08:40 +0100
committerJohannes Bornhold <johannes@bornhold.name>2017-01-14 20:27:54 +0100
commit4b9349698ae7c6a7032b9d7659a5d2afddd996ab (patch)
treed5c1a7416af22ba0ec89c10bff1c47fd94da6d70
parent2fe19b18e84d990c611b421c7fd5b5abac302077 (diff)
pangomm: Add ApplicationServices on darwin
-rw-r--r--pkgs/development/libraries/pangomm/default.nix7
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/pangomm/default.nix b/pkgs/development/libraries/pangomm/default.nix
index b99498f2013e2..b5ec5198975eb 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 d35ed158e64af..eda77bf4754eb 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 { };