git.iko.soy/typeable/nixpkgs
on master help sign in
kitty: Add terminfo attr (#45953)
commit720c163a55e6d8ad1ca391bc405214ac4bc09238 authorRoman Volosatovs <rvolosatovs@users.noreply.github.com> dateSun 2 Sep 2018, 21:07 (8 years ago) parent1c95066
1 file changed+11−1
pkgs/applications/misc/kitty/default.nix+11−1
pkgs/applications/misc/kitty/default.nix+11−1
@@ -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}