From d11e9b1fe51cc31cb1e45666b4946f8fbee39afe Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 14 Jun 2021 10:18:04 +0200 Subject: [PATCH] kitty: runHook preBuild and postBuild --- .../terminal-emulators/kitty/default.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/terminal-emulators/kitty/default.nix b/pkgs/applications/terminal-emulators/kitty/default.nix index 428830d945e6..f038fb123a5d 100644 --- a/pkgs/applications/terminal-emulators/kitty/default.nix +++ b/pkgs/applications/terminal-emulators/kitty/default.nix @@ -68,17 +68,21 @@ buildPythonApplication rec { dontConfigure = true; - buildPhase = if stdenv.isDarwin then '' - ${python.interpreter} setup.py kitty.app \ - --update-check-interval=0 \ - --disable-link-time-optimization - make man - '' else '' - ${python.interpreter} setup.py linux-package \ - --update-check-interval=0 \ - --egl-library='${lib.getLib libGL}/lib/libEGL.so.1' \ - --startup-notification-library='${libstartup_notification}/lib/libstartup-notification-1.so' \ - --canberra-library='${libcanberra}/lib/libcanberra.so' + buildPhase = '' + runHook preBuild + ${if stdenv.isDarwin then '' + ${python.interpreter} setup.py kitty.app \ + --update-check-interval=0 \ + --disable-link-time-optimization + make man + '' else '' + ${python.interpreter} setup.py linux-package \ + --update-check-interval=0 \ + --egl-library='${lib.getLib libGL}/lib/libEGL.so.1' \ + --startup-notification-library='${libstartup_notification}/lib/libstartup-notification-1.so' \ + --canberra-library='${libcanberra}/lib/libcanberra.so' + ''} + runHook postBuild ''; checkInputs = [ pillow ];