build ghostty nix package with ReleaseSafe

pull/1609/head
Jeffrey C. Ollie 2024-03-17 10:25:33 -05:00 committed by Mitchell Hashimoto
parent 1ac0980ea0
commit a69d9507b3
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 12 additions and 0 deletions

View File

@ -132,6 +132,18 @@ in
chmod u+rwX -R $ZIG_GLOBAL_CACHE_DIR
'';
buildPhase = ''
runHook preBuild
zig build -Dcpu=baseline -Doptimize=ReleaseSafe -Dversion-string=${finalAttrs.version}-${revision}-nix
runHook postBuild
'';
installPhase = ''
runHook preInstall
zig build install -Dcpu=baseline -Doptimize=ReleaseSafe -Dversion-string=${finalAttrs.version}-${revision}-nix --prefix $out
runHook postInstall
'';
outputs = ["out" "terminfo" "shell_integration"];
postInstall = ''