1 { callPackage, lib, fetchurl, fetchpatch, autoreconfHook }:
3 common = opts: callPackage (import ./common.nix opts) { };
11 url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
12 hash = "sha256-s0P7zb/4fxWxmG5uFdbU/Jp9NgZr5rf7UHCHuo+WbAI=";
15 extraPatches = [ ./ssh-keysign-8.5.patch ];
16 extraMeta.maintainers = lib.teams.helsinki-systems.members;
19 openssh_hpn = common rec {
20 pname = "openssh-with-hpn";
22 extraDesc = " with high performance networking patches";
25 url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
26 hash = "sha256-s0P7zb/4fxWxmG5uFdbU/Jp9NgZr5rf7UHCHuo+WbAI=";
29 extraPatches = let url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/7ba88c964b6e5724eec462021d984da3989e6a08/security/openssh-portable/files/extra-patch-hpn"; in
31 ./ssh-keysign-8.5.patch
33 # HPN Patch from FreeBSD ports
35 name = "ssh-hpn-wo-channels.patch";
38 excludes = [ "channels.c" ];
39 hash = "sha256-zk7t6FNzTE+8aDU4QuteR1x0W3O2gjIQmeCkTNbaUfA=";
43 name = "ssh-hpn-channels.patch";
46 includes = [ "channels.c" ];
47 hash = "sha256-pDLUbjv5XIyByEbiRAXC3WMUPKmn15af1stVmcvr7fE=";
51 extraNativeBuildInputs = [ autoreconfHook ];
53 extraConfigureFlags = [ "--with-hpn" ];
55 maintainers = with lib.maintainers; [ abbe ];
59 openssh_gssapi = common rec {
60 pname = "openssh-with-gssapi";
62 extraDesc = " with GSSAPI support";
65 url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
66 hash = "sha256-s0P7zb/4fxWxmG5uFdbU/Jp9NgZr5rf7UHCHuo+WbAI=";
70 ./ssh-keysign-8.5.patch
73 name = "openssh-gssapi.patch";
74 url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-2/debian/patches/gssapi.patch";
75 hash = "sha256-cQF5psMZpLWwVqK9CNi+Q8wHn6w6ffQUJRNI5jKGgD0=";
79 extraNativeBuildInputs = [ autoreconfHook ];