summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-08-02 14:04:00 +0000
committerGitHub <noreply@github.com>2021-08-02 14:04:00 +0000
commit4846390c1a135d876d468df65d63f94e88537840 (patch)
tree80b4ec125f4e5671b56f6d62d8f39d809d9c4bb5 /pkgs/applications
parentf427121142d2a5f3305fc5dd96cf84e7ba896cd3 (diff)
parent1c0eb8111f22a088cf3fe69cdc1e0317888458f8 (diff)
downloadnixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar.gz
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar.bz2
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar.lz
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar.xz
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.tar.zst
nixpkgs-4846390c1a135d876d468df65d63f94e88537840.zip
Merge pull request #132410 from SuperSandro2000/wezterm
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index d214d6fabc3..e3e10f6e0f9 100644
--- a/pkgs/applications/terminal-emulators/wezterm/default.nix
+++ b/pkgs/applications/terminal-emulators/wezterm/default.nix
@@ -34,7 +34,7 @@ let
     zlib
     fontconfig
     freetype
-  ] ++ lib.optionals (stdenv.isLinux) [
+  ] ++ lib.optionals stdenv.isLinux [
     libX11
     xcbutil
     libxcb
@@ -49,7 +49,7 @@ let
     libGLU
     libGL
     openssl
-  ] ++ lib.optionals (stdenv.isDarwin) [
+  ] ++ lib.optionals stdenv.isDarwin [
     Foundation
     CoreGraphics
     Cocoa
@@ -90,6 +90,10 @@ rustPlatform.buildRustPackage rec {
     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
+
+    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
   '';
 
   preFixup = lib.optionalString stdenv.isLinux ''