kitty: combine installPhase and postInstall phase

This commit is contained in:
Luflosi 2022-01-07 18:39:39 +01:00
parent a801c31fa4
commit 6f7a433402
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -125,10 +125,7 @@ buildPythonApplication rec {
--bash <("$out/bin/kitty" + complete setup bash) \
--fish <("$out/bin/kitty" + complete setup fish) \
--zsh <("$out/bin/kitty" + complete setup zsh)
runHook postInstall
'';
postInstall = ''
terminfo_src=${if stdenv.isDarwin then
''"$out/Applications/kitty.app/Contents/Resources/terminfo"''
else
@ -139,6 +136,8 @@ buildPythonApplication rec {
mkdir -p $out/nix-support
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
runHook postInstall
'';
meta = with lib; {