Unverified Commit 9bd0c069 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

ghostty-bin: fix build on darwin (#432677)

parents e606cb92 fd6ea0cb
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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