2021-09-23 15:35:13 +00:00
|
|
|
{ callPackage, fetchurl, fetchpatch, fetchFromGitHub, 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";
|
2021-09-26 12:46:18 +00:00
|
|
|
version = "8.7p1";
|
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";
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "090yxpi03pxxzb4ppx8g8hdpw7c4nf8p0avr6c7ybsaana5lp8vw";
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
openssh_hpn = common rec {
|
|
|
|
pname = "openssh-with-hpn";
|
|
|
|
version = "8.4p1";
|
|
|
|
extraDesc = " with high performance networking patches";
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rapier1";
|
|
|
|
repo = "openssh-portable";
|
|
|
|
rev = "hpn-KitchenSink-${builtins.replaceStrings [ "." "p" ] [ "_" "_P" ] version}";
|
|
|
|
hash = "sha256-SYQPDGxZR41m4g603RaZaOYm4vCr9uZnFnZoKhruueY=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraPatches = [
|
|
|
|
./ssh-keysign-8.4.patch
|
|
|
|
|
|
|
|
# See https://github.com/openssh/openssh-portable/pull/206
|
|
|
|
./ssh-copy-id-fix-eof.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
extraMeta.knownVulnerabilities = [
|
|
|
|
"CVE-2021-28041"
|
|
|
|
];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
|
|
|
version = "8.4p1";
|
|
|
|
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";
|
|
|
|
sha256 = "091b3pxdlj47scxx6kkf4agkx8c8sdacdxx8m1dw1cby80pd40as";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
extraPatches = [
|
|
|
|
./ssh-keysign-8.4.patch
|
2020-12-03 08:41:04 +00:00
|
|
|
|
|
|
|
# See https://github.com/openssh/openssh-portable/pull/206
|
|
|
|
./ssh-copy-id-fix-eof.patch
|
2021-04-05 15:23:46 +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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
extraMeta.knownVulnerabilities = [
|
|
|
|
"CVE-2021-28041"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|