kitty: Binary wrap kitty, and sign on darwin

Using shell to wrap is slow and not recommended, this alsos fixes issue
on aarch64-darwin sequoia 15.1.
Also auto sign kitty to prevent permission error on x86_64-darwin.
This commit is contained in:
Wang Liao 2024-11-02 22:36:14 +08:00 committed by wliao
parent 71408df70f
commit e510e227be
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,8 @@
, go_1_23
, buildGo123Module
, nix-update-script
, makeBinaryWrapper
, autoSignDarwinBinariesHook
}:
with python3Packages;
@ -85,9 +87,11 @@ buildPythonApplication rec {
sphinx-inline-tabs
go_1_23
fontconfig
makeBinaryWrapper
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
imagemagick
libicns # For the png2icns tool.
autoSignDarwinBinariesHook
] ++ lib.optionals stdenv.hostPlatform.isLinux [
wayland-scanner
];

View File

@ -2813,6 +2813,7 @@ with pkgs;
kitty = darwin.apple_sdk_11_0.callPackage ../applications/terminal-emulators/kitty {
harfbuzz = harfbuzz.override { withCoreText = stdenv.hostPlatform.isDarwin; };
inherit (darwin) autoSignDarwinBinariesHook;
inherit (darwin.apple_sdk_11_0) Libsystem;
inherit (darwin.apple_sdk_11_0.frameworks)
Cocoa