From fd6ea0cb2c4c76d787d95a4a79b355f582a6762b Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 10 Aug 2025 22:11:40 -0400 Subject: [PATCH] ghostty-bin: fix build on darwin --- pkgs/by-name/gh/ghostty-bin/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/gh/ghostty-bin/package.nix b/pkgs/by-name/gh/ghostty-bin/package.nix index 69716429c017..0cde73ed1e9a 100644 --- a/pkgs/by-name/gh/ghostty-bin/package.nix +++ b/pkgs/by-name/gh/ghostty-bin/package.nix @@ -17,6 +17,14 @@ stdenvNoCC.mkDerivation (finalAttrs: { sourceRoot = "."; + # otherwise fails to unpack with: + # ERROR: Dangerous link path was ignored : Ghostty.app/Contents/Resources/terminfo/67/ghostty : ../78/xterm-ghostty + unpackPhase = lib.optionalString stdenvNoCC.hostPlatform.isDarwin '' + runHook preUnpack + 7zz -snld x $src + runHook postUnpack + ''; + nativeBuildInputs = [ _7zz makeBinaryWrapper