diff options
author | kat <kat@kittywit.ch> | 2021-06-05 16:17:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 17:17:37 +0200 |
commit | e4a0b101904e3d24b60e7f79069a9fe967b54363 (patch) | |
tree | 1dce453f5f539f99c2ef794917ee20c6b555fe94 /pkgs/applications/terminal-emulators/wezterm | |
parent | 63ab3672b74e1326b043827da5788804734d9ee6 (diff) |
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/wezterm')
-rw-r--r-- | pkgs/applications/terminal-emulators/wezterm/default.nix | 10 |
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 b6d7dd763ed0c..d214d6fabc3d6 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 |