about summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/wezterm
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-08-12 18:50:22 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-08-12 18:50:22 +0200
commitf20016a4ab58d102f7f6b90a60a7ae8a899a1f66 (patch)
tree650ee8f85ad9728ad9ef99fc9d28084ff1133e8b /pkgs/applications/terminal-emulators/wezterm
parent868fe58abaa4d3c10180648fd49a8526d42913f9 (diff)
wezterm: install shell-integration script
Diffstat (limited to 'pkgs/applications/terminal-emulators/wezterm')
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index e3e10f6e0f948..23dbeb3b63fa2 100644
--- a/pkgs/applications/terminal-emulators/wezterm/default.nix
+++ b/pkgs/applications/terminal-emulators/wezterm/default.nix
@@ -87,13 +87,18 @@ rustPlatform.buildRustPackage rec {
   buildInputs = runtimeDeps;
 
   postInstall = ''
+    # terminfo
     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
 
+    # desktop icon
     install -Dm644 assets/icon/terminal.png $out/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png
     install -Dm644 assets/wezterm.desktop $out/share/applications/org.wezfurlong.wezterm.desktop
     install -Dm644 assets/wezterm.appdata.xml $out/share/metainfo/org.wezfurlong.wezterm.appdata.xml
+
+    # helper scripts
+    install -Dm644 assets/shell-integration/wezterm.sh $out/share/wezterm/shell-integration/wezterm.sh
   '';
 
   preFixup = lib.optionalString stdenv.isLinux ''