contour: Provide terminfo in separate output
This commit is contained in:
parent
150b2ff4d5
commit
91b8537619
@ -22,6 +22,7 @@ with lib;
|
|||||||
# pkgs)
|
# pkgs)
|
||||||
environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs; [
|
environment.systemPackages = mkIf config.environment.enableAllTerminfo (map (x: x.terminfo) (with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
|
contour
|
||||||
foot
|
foot
|
||||||
kitty
|
kitty
|
||||||
mtm
|
mtm
|
||||||
|
@ -47,6 +47,8 @@ mkDerivation rec {
|
|||||||
sha256 = "sha256-TpxVC0GFZD3jGISnDWHKEetgVVpznm5k/Vc2dwVfSG4=";
|
sha256 = "sha256-TpxVC0GFZD3jGISnDWHKEetgVVpznm5k/Vc2dwVfSG4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "terminfo" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
@ -86,6 +88,12 @@ mkDerivation rec {
|
|||||||
sed -i '/fixup_bundle/d' src/contour/CMakeLists.txt
|
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;
|
passthru.tests.test = nixosTests.terminal-emulators.contour;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user