diff options
author | Felix Buehler <account@buehler.rocks> | 2024-02-03 12:30:57 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2024-02-11 13:29:52 +0100 |
commit | 73145ca8948a6c2adf4e1f1d436b2926d998dfae (patch) | |
tree | ed048a99be2cc109ca8287a98e0f117c61321c01 /pkgs/applications/networking/remote/putty | |
parent | 237e77803ea0f34707b154dafcd2f8a47e54798f (diff) |
putty: add desktop item
Diffstat (limited to 'pkgs/applications/networking/remote/putty')
-rw-r--r-- | pkgs/applications/networking/remote/putty/default.nix | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix index 99a698cf9db0c..512a396fd0b76 100644 --- a/pkgs/applications/networking/remote/putty/default.nix +++ b/pkgs/applications/networking/remote/putty/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchurl, cmake, perl, pkg-config -, gtk3, ncurses, darwin +, gtk3, ncurses, darwin, copyDesktopItems, makeDesktopItem }: stdenv.mkDerivation rec { @@ -14,12 +14,31 @@ stdenv.mkDerivation rec { hash = "sha256-IBPIOnIbF1NSnpCQ98ODDo/kyAoHDMznZFObrbP2cIE="; }; - nativeBuildInputs = [ cmake perl pkg-config ]; + nativeBuildInputs = [ cmake perl pkg-config copyDesktopItems ]; buildInputs = lib.optionals stdenv.hostPlatform.isUnix [ gtk3 ncurses ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.libs.utmp; enableParallelBuilding = true; + desktopItems = [ + (makeDesktopItem { + name = "PuTTY SSH Client"; + exec = "putty"; + icon = "putty"; + desktopName = "PuTTY"; + comment = "Connect to an SSH server with PuTTY"; + categories = [ "GTK" "Network" ]; + }) + (makeDesktopItem { + name = "PuTTY Terminal Emulator"; + exec = "pterm"; + icon = "pterm"; + desktopName = "Pterm"; + comment = "Start a PuTTY terminal session"; + categories = [ "GTK" "System" "Utility" "TerminalEmulator" ]; + }) + ]; + meta = with lib; { description = "A Free Telnet/SSH Client"; longDescription = '' |