Merge pull request #192968 from SuperSandro2000/wezterm

authored by Sandro and committed by GitHub 72f13717 eada2462

+11 -3
+11 -3
pkgs/applications/terminal-emulators/wezterm/default.nix
··· 7 , pkg-config 8 , python3 9 , fontconfig 10 , openssl 11 , libGL 12 , libX11 ··· 49 cargoSha256 = "sha256-XJAeMDwtLtBzHMU/cb3lZgmcw5F3ifjKzKVmuP85/RY="; 50 51 nativeBuildInputs = [ 52 pkg-config 53 python3 54 - ncurses # tic for terminfo 55 ] ++ lib.optional stdenv.isDarwin perl; 56 57 buildInputs = [ ··· 75 UserNotifications 76 ]; 77 78 postInstall = '' 79 mkdir -p $out/nix-support 80 echo "${passthru.terminfo}" >> $out/nix-support/propagated-user-env-packages 81 82 - # desktop icon 83 install -Dm644 assets/icon/terminal.png $out/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png 84 install -Dm644 assets/wezterm.desktop $out/share/applications/org.wezfurlong.wezterm.desktop 85 install -Dm644 assets/wezterm.appdata.xml $out/share/metainfo/org.wezfurlong.wezterm.appdata.xml 86 87 - # helper scripts 88 install -Dm644 assets/shell-integration/wezterm.sh -t $out/etc/profile.d 89 ''; 90 91 preFixup = lib.optionalString stdenv.isLinux ''
··· 7 , pkg-config 8 , python3 9 , fontconfig 10 + , installShellFiles 11 , openssl 12 , libGL 13 , libX11 ··· 50 cargoSha256 = "sha256-XJAeMDwtLtBzHMU/cb3lZgmcw5F3ifjKzKVmuP85/RY="; 51 52 nativeBuildInputs = [ 53 + installShellFiles 54 + ncurses # tic for terminfo 55 pkg-config 56 python3 57 ] ++ lib.optional stdenv.isDarwin perl; 58 59 buildInputs = [ ··· 77 UserNotifications 78 ]; 79 80 + buildFeatures = [ "distro-defaults" ]; 81 + 82 postInstall = '' 83 mkdir -p $out/nix-support 84 echo "${passthru.terminfo}" >> $out/nix-support/propagated-user-env-packages 85 86 install -Dm644 assets/icon/terminal.png $out/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png 87 install -Dm644 assets/wezterm.desktop $out/share/applications/org.wezfurlong.wezterm.desktop 88 install -Dm644 assets/wezterm.appdata.xml $out/share/metainfo/org.wezfurlong.wezterm.appdata.xml 89 90 install -Dm644 assets/shell-integration/wezterm.sh -t $out/etc/profile.d 91 + installShellCompletion --cmd wezterm \ 92 + --bash assets/shell-completion/bash \ 93 + --fish assets/shell-completion/fish \ 94 + --zsh assets/shell-completion/zsh 95 + 96 + install -Dm644 assets/wezterm-nautilus.py -t $out/share/nautilus-python/extensions 97 ''; 98 99 preFixup = lib.optionalString stdenv.isLinux ''