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>
This commit is contained in:
kat 2021-06-05 16:17:37 +01:00 committed by GitHub
parent 63ab3672b7
commit e4a0b10190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
, rustPlatform , rustPlatform
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, ncurses
, pkg-config , pkg-config
, fontconfig , fontconfig
, python3 , python3
@ -68,6 +69,8 @@ rustPlatform.buildRustPackage rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
outputs = [ "out" "terminfo" ];
postPatch = '' postPatch = ''
echo ${version} > .tag echo ${version} > .tag
''; '';
@ -78,10 +81,17 @@ rustPlatform.buildRustPackage rec {
pkg-config pkg-config
python3 python3
perl perl
ncurses
]; ];
buildInputs = runtimeDeps; 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 '' preFixup = lib.optionalString stdenv.isLinux ''
for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do for artifact in wezterm wezterm-gui wezterm-mux-server strip-ansi-escapes; do
patchelf --set-rpath "${lib.makeLibraryPath runtimeDeps}" $out/bin/$artifact patchelf --set-rpath "${lib.makeLibraryPath runtimeDeps}" $out/bin/$artifact