mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
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:
parent
63ab3672b7
commit
e4a0b10190
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue