3
0
Fork 0
forked from mirrors/nixpkgs

kitty: runHook preBuild and postBuild

This commit is contained in:
Luflosi 2021-06-14 10:18:04 +02:00
parent 799cdbd834
commit d11e9b1fe5
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -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 ];