@@ -26,6 +26,8 @@ buildPythonApplication rec {
2626
2727 nativeBuildInputs = [ pkgconfig which sphinx ];
2828
29+ outputs = [ "out" "terminfo" ];
30+
2931 postPatch = ''
3032 substituteInPlace kitty/utils.py \
3133 --replace "find_library('startup-notification-1')" "'${libstartup_notification}/lib/libstartup-notification-1.so'"
@@ -47,11 +49,19 @@ buildPythonApplication rec {
4749 runHook postInstall
4850 '';
4951
52+ postInstall = ''
53+ mkdir -p $terminfo/share
54+ mv $out/share/terminfo $terminfo/share/terminfo
55+
56+ mkdir -p $out/nix-support
57+ echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
58+ '';
59+
5060 meta = with stdenv.lib; {
5161 homepage = https://github.com/kovidgoyal/kitty;
5262 description = "A modern, hackable, featureful, OpenGL based terminal emulator";
5363 license = licenses.gpl3;
5464 platforms = platforms.linux;
55− maintainers = with maintainers; [ tex ];
65+ maintainers = with maintainers; [ tex rvolosatovs ];
5666 };
5767}