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
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue