3
0
Fork 0
forked from mirrors/nixpkgs

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
, 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