contour: Provide terminfo in separate output

This commit is contained in:
nicoo 2023-09-09 08:42:26 +00:00
parent 150b2ff4d5
commit 91b8537619
2 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@ with lib;
# pkgs)
environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs; [
alacritty
contour
foot
kitty
mtm

View file

@ -47,6 +47,8 @@ mkDerivation rec {
sha256 = "sha256-TpxVC0GFZD3jGISnDWHKEetgVVpznm5k/Vc2dwVfSG4=";
};
outputs = [ "out" "terminfo" ];
nativeBuildInputs = [
cmake
pkg-config
@ -86,6 +88,12 @@ mkDerivation rec {
sed -i '/fixup_bundle/d' src/contour/CMakeLists.txt
'';
postInstall = ''
mkdir -p $out/nix-support $terminfo/share
mv $out/share/terminfo $terminfo/share/
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
'';
passthru.tests.test = nixosTests.terminal-emulators.contour;
meta = with lib; {