mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
Merge pull request #287037 from Stunkymonkey/putty-desktop-item
putty: add desktop item
This commit is contained in:
commit
73cd063e72
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user