depot/nix/pkgs/terminfos/default.nix

32 lines
621 B
Nix

{ 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
];
}