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-3YvQAqN5tdSZ37BQ3R+pr4Ap6ARh9LtsUjxJlz9aOfM=";
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-3YvQAqN5tdSZ37BQ3R+pr4Ap6ARh9LtsUjxJlz9aOfM=";
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-3YvQAqN5tdSZ37BQ3R+pr4Ap6ARh9LtsUjxJlz9aOfM=";
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}-3/debian/patches/gssapi.patch";
75 hash = "sha256-BnmEZ5pMIbbysesMSm54ykdweH4JudM9D4Pn5uWf3EY=";
79 extraNativeBuildInputs = [ autoreconfHook ];