2023-08-04 22:07:22 +00:00
|
|
|
{ callPackage, lib, fetchurl, fetchpatch, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2021-09-23 15:35:13 +00:00
|
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
|
|
|
in
|
|
|
|
{
|
2021-04-05 15:23:46 +00:00
|
|
|
openssh = common rec {
|
|
|
|
pname = "openssh";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "9.5p1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8Cbnt5un+1QPdRgq+W3IqPHbOV+SK7yfbKYDZyaGCGs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
2021-12-06 16:07:01 +00:00
|
|
|
extraMeta.maintainers = with lib.maintainers; [ das_j ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
openssh_hpn = common rec {
|
|
|
|
pname = "openssh-with-hpn";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "9.5p1";
|
2021-04-05 15:23:46 +00:00
|
|
|
extraDesc = " with high performance networking patches";
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8Cbnt5un+1QPdRgq+W3IqPHbOV+SK7yfbKYDZyaGCGs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
extraPatches = let url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/700625bcd86b74cf3fb9536aeea250d7f8cd1fd5/security/openssh-portable/files/extra-patch-hpn"; in
|
|
|
|
[
|
2022-01-07 04:07:37 +00:00
|
|
|
./ssh-keysign-8.5.patch
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
# HPN Patch from FreeBSD ports
|
|
|
|
(fetchpatch {
|
2023-02-22 10:55:15 +00:00
|
|
|
name = "ssh-hpn-wo-channels.patch";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit url;
|
2022-01-07 04:07:37 +00:00
|
|
|
stripLen = 1;
|
2023-02-22 10:55:15 +00:00
|
|
|
excludes = [ "channels.c" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-hYB3i0ifNOgGLYwElMJFcT+ktczLKciq3qw1tTHZHcc=";
|
2022-01-07 04:07:37 +00:00
|
|
|
})
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
2023-02-22 10:55:15 +00:00
|
|
|
name = "ssh-hpn-channels.patch";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit url;
|
2023-02-22 10:55:15 +00:00
|
|
|
extraPrefix = "";
|
|
|
|
includes = [ "channels.c" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-pDLUbjv5XIyByEbiRAXC3WMUPKmn15af1stVmcvr7fE=";
|
2023-02-16 17:41:37 +00:00
|
|
|
})
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
extraConfigureFlags = [ "--with-hpn" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
extraMeta = {
|
|
|
|
maintainers = with lib.maintainers; [ abbe ];
|
|
|
|
};
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "9.5p1";
|
2021-04-05 15:23:46 +00:00
|
|
|
extraDesc = " with GSSAPI support";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-8Cbnt5un+1QPdRgq+W3IqPHbOV+SK7yfbKYDZyaGCGs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
extraPatches = [
|
2022-07-14 12:49:19 +00:00
|
|
|
./ssh-keysign-8.5.patch
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
name = "openssh-gssapi.patch";
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-1/debian/patches/gssapi.patch";
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-E36jxnPcu6RTyXXb9yVBCoFIVchiOSLX7L74ng1Dmao=";
|
2021-04-05 15:23:46 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|