about summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorstrager <strager.nds@gmail.com>2019-03-31 12:18:58 -0700
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-05-13 10:23:34 -0400
commit620c95c002cf85b8245769985b58424d11339397 (patch)
tree29eb875d77f8d2952c77400ffde306bc0a14deea /pkgs/top-level
parent39d3dd40a42238ae8bfa578012023170add56567 (diff)
kitty: support macOS (#56740)
Install the `kitty` command-line utility and the `kitty.app` macOS
application.

* Prefer libicns (png2icns) over Apple's non-free iconutil.
* Work around warnings from Apple headers by disabling -pedantic-errors
  and -Werror.
* Work around ld not support LLVM-LTO by disabling LTO.
* Make Kitty and glfw compile for macOS 10.11 (and macOS 10.10).

(cherry picked from commit 75aa8460ac73f92b1e47436508b52a18213c003c)

cc #56740
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/all-packages.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 679fbccbe54cb..6d9284ef04807 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -18057,7 +18057,13 @@ in
 
   kipi-plugins = libsForQt5.callPackage ../applications/graphics/kipi-plugins { };
 
-  kitty = callPackage ../applications/misc/kitty { };
+  kitty = callPackage ../applications/misc/kitty {
+    harfbuzz = if stdenv.isDarwin then harfbuzz.override {
+      withCoreText = true;
+    } else harfbuzz;
+    inherit (darwin) cf-private;
+    inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics Foundation IOKit Kernel OpenGL;
+  };
 
   kiwix = callPackage ../applications/misc/kiwix { };