yaft: Provide terminfo in separate output

This commit is contained in:
nicoo 2023-09-09 09:13:33 +00:00
parent a4116e9289
commit c5de4a5be3
2 changed files with 9 additions and 0 deletions

View file

@ -33,6 +33,7 @@ with lib;
termite
tmux
wezterm
yaft
]));
environment.pathsToLink = [

View file

@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
version = "0.2.9";
pname = "yaft";
outputs = [ "out" "terminfo" ];
src = fetchFromGitHub {
owner = "uobikiemukot";
repo = "yaft";
@ -15,6 +17,12 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" "MANPREFIX=$(out)/share/man" ];
postInstall = ''
mkdir -p $out/nix-support $terminfo/share
mv $out/share/terminfo $terminfo/share/
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
'';
meta = {
homepage = "https://github.com/uobikiemukot/yaft";
description = "Yet another framebuffer terminal";