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 7 , pkg-config 8 8 , python3 9 9 , fontconfig 10 + , installShellFiles 10 11 , openssl 11 12 , libGL 12 13 , libX11 ··· 49 50 cargoSha256 = "sha256-XJAeMDwtLtBzHMU/cb3lZgmcw5F3ifjKzKVmuP85/RY="; 50 51 51 52 nativeBuildInputs = [ 53 + installShellFiles 54 + ncurses # tic for terminfo 52 55 pkg-config 53 56 python3 54 - ncurses # tic for terminfo 55 57 ] ++ lib.optional stdenv.isDarwin perl; 56 58 57 59 buildInputs = [ ··· 75 77 UserNotifications 76 78 ]; 77 79 80 + buildFeatures = [ "distro-defaults" ]; 81 + 78 82 postInstall = '' 79 83 mkdir -p $out/nix-support 80 84 echo "${passthru.terminfo}" >> $out/nix-support/propagated-user-env-packages 81 85 82 - # desktop icon 83 86 install -Dm644 assets/icon/terminal.png $out/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png 84 87 install -Dm644 assets/wezterm.desktop $out/share/applications/org.wezfurlong.wezterm.desktop 85 88 install -Dm644 assets/wezterm.appdata.xml $out/share/metainfo/org.wezfurlong.wezterm.appdata.xml 86 89 87 - # helper scripts 88 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 89 97 ''; 90 98 91 99 preFixup = lib.optionalString stdenv.isLinux ''