depot/nix/pkgs/terminfos/default.nix

33 lines
621 B
Nix
Raw Permalink Normal View History

2023-01-15 16:10:12 +00:00
{ stdenvNoCC, kitty, ncurses, rxvt-unicode-unwrapped, alacritty, symlinkJoin }:
let
kitty-terminfo = stdenvNoCC.mkDerivation {
pname = "kitty-terminfo";
inherit (kitty) version src;
dontBuild = true;
nativeBuildInputs = [
ncurses
];
installPhase = ''
runHook preInstall
install -d $out/share/terminfo
export TERMINFO=$out/share/terminfo
tic -x terminfo/kitty.terminfo
runHook postInstall
'';
};
in
symlinkJoin {
name = "terminfos";
paths = [
kitty-terminfo
rxvt-unicode-unwrapped.terminfo
alacritty.terminfo
];
}