2023-07-25 15:36:57 +00:00
|
|
|
{ callPackage, lib, fetchurl, fetchpatch, autoreconfHook }:
|
2010-02-01 16:56:10 +00:00
|
|
|
let
|
2021-09-19 17:10:58 +00:00
|
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
|
|
|
in
|
|
|
|
{
|
2021-03-03 19:33:21 +00:00
|
|
|
openssh = common rec {
|
|
|
|
pname = "openssh";
|
2023-12-18 19:34:20 +00:00
|
|
|
version = "9.6p1";
|
2016-01-02 00:35:43 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-12-18 19:34:20 +00:00
|
|
|
hash = "sha256-kQIRwHJVqMWtZUORtA7lmABxDdgRndU2LeCThap6d3w=";
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2006-12-11 03:24:35 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
2023-11-17 12:35:31 +00:00
|
|
|
extraMeta.maintainers = lib.teams.helsinki-systems.members;
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2013-02-19 10:02:20 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
openssh_hpn = common rec {
|
|
|
|
pname = "openssh-with-hpn";
|
2023-10-04 19:30:56 +00:00
|
|
|
version = "9.5p1";
|
2021-03-03 19:33:21 +00:00
|
|
|
extraDesc = " with high performance networking patches";
|
2016-07-16 08:08:29 +00:00
|
|
|
|
2022-01-04 13:37:16 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-10-04 19:30:56 +00:00
|
|
|
hash = "sha256-8Cbnt5un+1QPdRgq+W3IqPHbOV+SK7yfbKYDZyaGCGs=";
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2019-01-13 20:26:05 +00:00
|
|
|
|
2023-05-24 08:18:14 +00:00
|
|
|
extraPatches = let url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/700625bcd86b74cf3fb9536aeea250d7f8cd1fd5/security/openssh-portable/files/extra-patch-hpn"; in
|
|
|
|
[
|
2022-01-04 13:37:16 +00:00
|
|
|
./ssh-keysign-8.5.patch
|
2020-11-19 08:15:23 +00:00
|
|
|
|
2022-01-04 13:37:16 +00:00
|
|
|
# HPN Patch from FreeBSD ports
|
|
|
|
(fetchpatch {
|
2023-02-18 11:24:44 +00:00
|
|
|
name = "ssh-hpn-wo-channels.patch";
|
2023-05-24 08:18:14 +00:00
|
|
|
inherit url;
|
2022-01-04 13:37:16 +00:00
|
|
|
stripLen = 1;
|
2023-02-18 11:24:44 +00:00
|
|
|
excludes = [ "channels.c" ];
|
2023-05-24 08:18:14 +00:00
|
|
|
hash = "sha256-hYB3i0ifNOgGLYwElMJFcT+ktczLKciq3qw1tTHZHcc=";
|
2022-01-04 13:37:16 +00:00
|
|
|
})
|
2023-02-02 15:18:12 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
2023-02-18 11:24:44 +00:00
|
|
|
name = "ssh-hpn-channels.patch";
|
2023-05-24 08:18:14 +00:00
|
|
|
inherit url;
|
2023-02-18 11:24:44 +00:00
|
|
|
extraPrefix = "";
|
|
|
|
includes = [ "channels.c" ];
|
2023-05-24 08:18:14 +00:00
|
|
|
hash = "sha256-pDLUbjv5XIyByEbiRAXC3WMUPKmn15af1stVmcvr7fE=";
|
2023-02-02 15:18:12 +00:00
|
|
|
})
|
2021-03-03 19:33:21 +00:00
|
|
|
];
|
2017-06-07 07:33:26 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2021-03-11 10:57:14 +00:00
|
|
|
|
2022-01-04 13:37:16 +00:00
|
|
|
extraConfigureFlags = [ "--with-hpn" ];
|
2023-03-21 08:22:28 +00:00
|
|
|
extraMeta = {
|
|
|
|
maintainers = with lib.maintainers; [ abbe ];
|
|
|
|
};
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2015-07-07 02:29:45 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
2023-10-04 19:31:21 +00:00
|
|
|
version = "9.5p1";
|
2021-03-03 19:33:21 +00:00
|
|
|
extraDesc = " with GSSAPI support";
|
2019-06-20 17:15:33 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2023-10-04 19:31:21 +00:00
|
|
|
hash = "sha256-8Cbnt5un+1QPdRgq+W3IqPHbOV+SK7yfbKYDZyaGCGs=";
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2014-11-20 11:12:33 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraPatches = [
|
2022-07-06 09:34:30 +00:00
|
|
|
./ssh-keysign-8.5.patch
|
2007-05-15 13:10:41 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "openssh-gssapi.patch";
|
2022-07-06 09:34:30 +00:00
|
|
|
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-1/debian/patches/gssapi.patch";
|
2023-08-03 21:13:39 +00:00
|
|
|
sha256 = "sha256-E36jxnPcu6RTyXXb9yVBCoFIVchiOSLX7L74ng1Dmao=";
|
2021-03-03 19:33:21 +00:00
|
|
|
})
|
|
|
|
];
|
2010-02-01 16:56:10 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2010-02-01 16:56:10 +00:00
|
|
|
};
|
2004-08-02 11:55:31 +00:00
|
|
|
}
|