From 720c163a55e6d8ad1ca391bc405214ac4bc09238 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sun, 2 Sep 2018 21:07:31 +0200 Subject: [PATCH] kitty: Add terminfo attr (#45953) --- pkgs/applications/misc/kitty/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/kitty/default.nix b/pkgs/applications/misc/kitty/default.nix index d3fff65a3995..c34167b4ddb8 100644 --- a/pkgs/applications/misc/kitty/default.nix +++ b/pkgs/applications/misc/kitty/default.nix @@ -26,6 +26,8 @@ buildPythonApplication rec { nativeBuildInputs = [ pkgconfig which sphinx ]; + outputs = [ "out" "terminfo" ]; + postPatch = '' substituteInPlace kitty/utils.py \ --replace "find_library('startup-notification-1')" "'${libstartup_notification}/lib/libstartup-notification-1.so'" @@ -47,11 +49,19 @@ buildPythonApplication rec { runHook postInstall ''; + postInstall = '' + mkdir -p $terminfo/share + mv $out/share/terminfo $terminfo/share/terminfo + + mkdir -p $out/nix-support + echo "$terminfo" >> $out/nix-support/propagated-user-env-packages + ''; + meta = with stdenv.lib; { homepage = https://github.com/kovidgoyal/kitty; description = "A modern, hackable, featureful, OpenGL based terminal emulator"; license = licenses.gpl3; platforms = platforms.linux; - maintainers = with maintainers; [ tex ]; + maintainers = with maintainers; [ tex rvolosatovs ]; }; }