Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
cmake,
|
|
perl,
|
|
pkg-config,
|
|
gtk3,
|
|
ncurses,
|
|
copyDesktopItems,
|
|
makeDesktopItem,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.83";
|
|
pname = "putty";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://the.earth.li/~sgtatham/putty/${version}/${pname}-${version}.tar.gz"
|
|
"ftp://ftp.wayne.edu/putty/putty-website-mirror/${version}/${pname}-${version}.tar.gz"
|
|
];
|
|
hash = "sha256-cYd3wT1j0N/5H+AxYrwqBbTfyLCCdjTNYLUc79/2McY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
perl
|
|
pkg-config
|
|
copyDesktopItems
|
|
];
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isUnix [
|
|
gtk3
|
|
ncurses
|
|
];
|
|
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 = "Free Telnet/SSH Client";
|
|
longDescription = ''
|
|
PuTTY is a free implementation of Telnet and SSH for Windows and Unix
|
|
platforms, along with an xterm terminal emulator.
|
|
It is written and maintained primarily by Simon Tatham.
|
|
'';
|
|
homepage = "https://www.chiark.greenend.org.uk/~sgtatham/putty/";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
};
|
|
}
|