2021-03-03 20:33:21 +01:00
|
|
|
{ callPackage, fetchurl, fetchpatch, autoreconfHook }:
|
2010-02-01 17:56:10 +01:00
|
|
|
let
|
2021-03-03 20:33:21 +01:00
|
|
|
common = opts: callPackage (import ./common.nix opts) {};
|
|
|
|
in {
|
2009-10-01 14:07:33 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh = common rec {
|
|
|
|
pname = "openssh";
|
2021-04-19 08:33:03 +02:00
|
|
|
version = "8.6p1";
|
2016-01-02 01:35:43 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
2021-04-19 08:33:03 +02:00
|
|
|
sha256 = "1bnpivgk98h2f9afpp88jv6g9ps83vnpxd031n2jqxi12vdf9rn3";
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2006-12-11 04:24:35 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraPatches = [ ./ssh-keysign-8.5.patch ];
|
|
|
|
};
|
2013-02-19 11:02:20 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh_hpn = common rec {
|
|
|
|
pname = "openssh-with-hpn";
|
|
|
|
version = "8.4p1";
|
|
|
|
extraDesc = " with high performance networking patches";
|
2016-07-16 10:08:29 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-${builtins.replaceStrings [ "." "p" ] [ "_" "_P" ] version}.tar.gz";
|
|
|
|
sha256 = "1x2afjy1isslbg7qlvhhs4zhj2c8q2h1ljz0fc5b4h9pqcm9j540";
|
|
|
|
};
|
2019-01-13 21:26:05 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraPatches = [
|
|
|
|
./ssh-keysign-8.4.patch
|
2020-11-19 09:15:23 +01:00
|
|
|
|
|
|
|
# See https://github.com/openssh/openssh-portable/pull/206
|
|
|
|
./ssh-copy-id-fix-eof.patch
|
2021-03-03 20:33:21 +01:00
|
|
|
];
|
2017-06-07 09:33:26 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2021-03-11 11:57:14 +01:00
|
|
|
|
|
|
|
extraMeta.knownVulnerabilities = [
|
|
|
|
"CVE-2021-28041"
|
|
|
|
];
|
2021-03-03 20:33:21 +01:00
|
|
|
};
|
2015-07-07 04:29:45 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
openssh_gssapi = common rec {
|
|
|
|
pname = "openssh-with-gssapi";
|
|
|
|
version = "8.4p1";
|
|
|
|
extraDesc = " with GSSAPI support";
|
2019-06-20 19:15:33 +02:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
|
|
|
|
sha256 = "091b3pxdlj47scxx6kkf4agkx8c8sdacdxx8m1dw1cby80pd40as";
|
|
|
|
};
|
2014-11-20 12:12:33 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraPatches = [
|
|
|
|
./ssh-keysign-8.4.patch
|
2016-02-26 17:30:26 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
# See https://github.com/openssh/openssh-portable/pull/206
|
|
|
|
./ssh-copy-id-fix-eof.patch
|
2007-05-15 15:10:41 +02:00
|
|
|
|
2021-03-03 20:33:21 +01: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 17:56:10 +01:00
|
|
|
|
2021-03-03 20:33:21 +01:00
|
|
|
extraNativeBuildInputs = [ autoreconfHook ];
|
2021-03-11 11:57:14 +01:00
|
|
|
|
|
|
|
extraMeta.knownVulnerabilities = [
|
|
|
|
"CVE-2021-28041"
|
|
|
|
];
|
2010-02-01 17:56:10 +01:00
|
|
|
};
|
2004-08-02 13:55:31 +02:00
|
|
|
}
|