2021-09-30 20:12:47 +01:00
|
|
|
{ callPackage, lib, fetchurl, fetchpatch, fetchFromGitHub, autoreconfHook }:
|
2010-02-01 16:56:10 +00:00
|
|
|
let
|
2021-09-19 18:10:58 +01:00
|
|
|
common = opts: callPackage (import ./common.nix opts) { };
|
|
|
|
in
|
|
|
|
{
|
2009-10-01 13:07:33 +01:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
openssh = common rec {
|
|
|
|
pname = "openssh";
|
2022-02-23 19:26:44 +00:00
|
|
|
version = "8.9p1";
|
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";
|
2022-02-23 19:26:44 +00:00
|
|
|
sha256 = "sha256:1ry5prcax0134v6srkgznpl9ch5snkgq7yvjqvd8c5mbnxa7cjgx";
|
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 ];
|
2021-09-30 20:12:47 +01:00
|
|
|
extraMeta.maintainers = with lib.maintainers; [ das_j ];
|
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";
|
2022-03-03 21:17:14 +00:00
|
|
|
version = "8.9p1";
|
2021-03-03 19:33:21 +00:00
|
|
|
extraDesc = " with high performance networking patches";
|
2016-07-16 09:08:29 +01:00
|
|
|
|
2022-01-04 13:37:16 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2022-03-03 21:17:14 +00:00
|
|
|
sha256 = "1ry5prcax0134v6srkgznpl9ch5snkgq7yvjqvd8c5mbnxa7cjgx";
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2019-01-13 20:26:05 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraPatches = [
|
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 {
|
|
|
|
name = "ssh-hpn.patch";
|
2022-03-03 21:17:14 +00:00
|
|
|
url = "https://raw.githubusercontent.com/freebsd/freebsd-ports/ae66cffc19f357cbd51d5841c9b110a9ffd63e32/security/openssh-portable/files/extra-patch-hpn";
|
2022-01-04 13:37:16 +00:00
|
|
|
stripLen = 1;
|
2022-03-03 21:17:14 +00:00
|
|
|
sha256 = "sha256-p3CmMqTgrqFZUo4ZuqaPLczAhjmPufkCvptVW5dI+MI=";
|
2022-01-04 13:37:16 +00:00
|
|
|
})
|
2021-03-03 19:33:21 +00:00
|
|
|
];
|
2017-06-07 08:33:26 +01: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" ];
|
|
|
|
extraMeta.maintainers = with lib.maintainers; [ abbe ];
|
2021-03-03 19:33:21 +00:00
|
|
|
};
|
2015-07-07 03:29:45 +01:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
|
|
|
version = "8.4p1";
|
|
|
|
extraDesc = " with GSSAPI support";
|
2019-06-20 18:15:33 +01:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
|
|
|
sha256 = "091b3pxdlj47scxx6kkf4agkx8c8sdacdxx8m1dw1cby80pd40as";
|
|
|
|
};
|
2014-11-20 11:12:33 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraPatches = [
|
|
|
|
./ssh-keysign-8.4.patch
|
2016-02-26 16:30:26 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
# See https://github.com/openssh/openssh-portable/pull/206
|
|
|
|
./ssh-copy-id-fix-eof.patch
|
2007-05-15 14:10:41 +01:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "openssh-gssapi.patch";
|
|
|
|
url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-2/debian/patches/gssapi.patch";
|
|
|
|
sha256 = "1z1ckzimlkm1dmr9f5fqjnjg28gsqcwx6xka0klak857548d2lp2";
|
|
|
|
})
|
|
|
|
];
|
2010-02-01 16:56:10 +00:00
|
|
|
|
2021-03-03 19:33:21 +00:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2021-03-11 10:57:14 +00:00
|
|
|
|
|
|
|
extraMeta.knownVulnerabilities = [
|
|
|
|
"CVE-2021-28041"
|
2021-10-03 14:05:35 +01:00
|
|
|
"CVE-2021-41617"
|
2021-03-11 10:57:14 +00:00
|
|
|
];
|
2010-02-01 16:56:10 +00:00
|
|
|
};
|
2004-08-02 12:55:31 +01:00
|
|
|
}
|