kitty: Add terminfo attr (#45953)
This commit is contained in:
parent
1c95066639
commit
720c163a55
@ -26,6 +26,8 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig which sphinx ];
|
nativeBuildInputs = [ pkgconfig which sphinx ];
|
||||||
|
|
||||||
|
outputs = [ "out" "terminfo" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace kitty/utils.py \
|
substituteInPlace kitty/utils.py \
|
||||||
--replace "find_library('startup-notification-1')" "'${libstartup_notification}/lib/libstartup-notification-1.so'"
|
--replace "find_library('startup-notification-1')" "'${libstartup_notification}/lib/libstartup-notification-1.so'"
|
||||||
@ -47,11 +49,19 @@ buildPythonApplication rec {
|
|||||||
runHook postInstall
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/kovidgoyal/kitty;
|
homepage = https://github.com/kovidgoyal/kitty;
|
||||||
description = "A modern, hackable, featureful, OpenGL based terminal emulator";
|
description = "A modern, hackable, featureful, OpenGL based terminal emulator";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ tex ];
|
maintainers = with maintainers; [ tex rvolosatovs ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user