1 { callPackage, fetchurl, fetchpatch, autoreconfHook }:
3 common = opts: callPackage (import ./common.nix opts) {};
11 url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
12 sha256 = "09gc8rv7728chxraab85dzkdikaw4aph1wlcwcc9kai9si0kybzm";
15 extraPatches = [ ./ssh-keysign-8.5.patch ];
18 openssh_hpn = common rec {
19 pname = "openssh-with-hpn";
21 extraDesc = " with high performance networking patches";
24 url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-${builtins.replaceStrings [ "." "p" ] [ "_" "_P" ] version}.tar.gz";
25 sha256 = "1x2afjy1isslbg7qlvhhs4zhj2c8q2h1ljz0fc5b4h9pqcm9j540";
29 ./ssh-keysign-8.4.patch
31 # See https://github.com/openssh/openssh-portable/pull/206
32 ./ssh-copy-id-fix-eof.patch
35 extraNativeBuildInputs = [ autoreconfHook ];
37 extraMeta.knownVulnerabilities = [
42 openssh_gssapi = common rec {
43 pname = "openssh-with-gssapi";
45 extraDesc = " with GSSAPI support";
48 url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
49 sha256 = "091b3pxdlj47scxx6kkf4agkx8c8sdacdxx8m1dw1cby80pd40as";
53 ./ssh-keysign-8.4.patch
55 # See https://github.com/openssh/openssh-portable/pull/206
56 ./ssh-copy-id-fix-eof.patch
59 name = "openssh-gssapi.patch";
60 url = "https://salsa.debian.org/ssh-team/openssh/raw/debian/1%25${version}-2/debian/patches/gssapi.patch";
61 sha256 = "1z1ckzimlkm1dmr9f5fqjnjg28gsqcwx6xka0klak857548d2lp2";
65 extraNativeBuildInputs = [ autoreconfHook ];
67 extraMeta.knownVulnerabilities = [