about summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators
diff options
context:
space:
mode:
authorkat <kat@kittywit.ch>2021-06-05 16:17:37 +0100
committerGitHub <noreply@github.com>2021-06-05 17:17:37 +0200
commite4a0b101904e3d24b60e7f79069a9fe967b54363 (patch)
tree1dce453f5f539f99c2ef794917ee20c6b555fe94 /pkgs/applications/terminal-emulators
parent63ab3672b74e1326b043827da5788804734d9ee6 (diff)
downloadnixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar.gz
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar.bz2
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar.lz
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar.xz
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.tar.zst
nixlib-e4a0b101904e3d24b60e7f79069a9fe967b54363.zip
wezterm: Add terminfo output (#125320)
* wezterm: Add terminfo output

* Update pkgs/applications/terminal-emulators/wezterm/default.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/terminal-emulators')
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index b6d7dd763ed0..d214d6fabc3d 100644
--- a/pkgs/applications/terminal-emulators/wezterm/default.nix
+++ b/pkgs/applications/terminal-emulators/wezterm/default.nix
@@ -2,6 +2,7 @@
 , rustPlatform
 , lib
 , fetchFromGitHub
+, ncurses
 , pkg-config
 , fontconfig
 , python3
@@ -68,6 +69,8 @@ rustPlatform.buildRustPackage rec {
     fetchSubmodules = true;
   };
 
+  outputs = [ "out" "terminfo" ];
+
   postPatch = ''
     echo ${version} > .tag
   '';
@@ -78,10 +81,17 @@ rustPlatform.buildRustPackage rec {
     pkg-config
     python3
     perl
+    ncurses
   ];
 
   buildInputs = runtimeDeps;
 
+  postInstall = ''
+    mkdir -p $terminfo/share/terminfo/w $out/nix-support
+    tic -x -o $terminfo/share/terminfo termwiz/data/wezterm.terminfo
+    echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
+  '';
+
   preFixup = lib.optionalString stdenv.isLinux ''
     for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do
       patchelf --set-rpath "${lib.makeLibraryPath runtimeDeps}" $out/bin/$artifact