diff --git a/pkgs/tools/misc/fontforge/default.nix b/pkgs/tools/misc/fontforge/default.nix index 0d6cfb19c349..c04b9255afcb 100644 --- a/pkgs/tools/misc/fontforge/default.nix +++ b/pkgs/tools/misc/fontforge/default.nix @@ -3,6 +3,7 @@ , python, freetype, zlib, glib, libungif, libpng, libjpeg, libtiff, libxml2, pango , withGTK ? false, gtk2 , withPython ? true +, Carbon ? null, Cocoa ? null }: stdenv.mkDerivation rec { @@ -30,7 +31,8 @@ stdenv.mkDerivation rec { python freetype zlib glib libungif libpng libjpeg libtiff libxml2 pango ] - ++ lib.optionals withGTK [ gtk2 ]; + ++ lib.optionals withGTK [ gtk2 ] + ++ lib.optionals (withGTK && stdenv.isDarwin) [ Carbon Cocoa ]; configureFlags = lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce4d10b74ac8..cdc685d2cf70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1603,6 +1603,7 @@ in fontforge = lowPrio (callPackage ../tools/misc/fontforge { }); fontforge-gtk = callPackage ../tools/misc/fontforge { withGTK = true; + inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; }; fontmatrix = callPackage ../applications/graphics/fontmatrix {};