nixpkgs/pkgs/tools/networking/openssh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
2.3 KiB
Nix
Raw Normal View History

{ callPackage, lib, fetchurl, fetchpatch, autoreconfHook }:
let
common = opts: callPackage (import ./common.nix opts) { };
in
{
openssh = common rec {
pname = "openssh";
2023-12-18 19:34:20 +00:00
version = "9.6p1";
src = fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-${version}.tar.gz";
2023-12-18 19:34:20 +00:00
hash = "sha256-kQIRwHJVqMWtZUORtA7lmABxDdgRndU2LeCThap6d3w=";
};
extraPatches = [ ./ssh-keysign-8.5.patch ];
extraMeta.maintainers = lib.teams.helsinki-systems.members;
};
openssh_hpn = common rec {
pname = "openssh-with-hpn";
2023-10-04 19:30:56 +00:00
version = "9.5p1";
extraDesc = " with high performance networking patches";
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=";
};
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
[
./ssh-keysign-8.5.patch
# HPN Patch from FreeBSD ports
(fetchpatch {
name = "ssh-hpn-wo-channels.patch";
2023-05-24 08:18:14 +00:00
inherit url;
stripLen = 1;
excludes = [ "channels.c" ];
2023-05-24 08:18:14 +00:00
hash = "sha256-hYB3i0ifNOgGLYwElMJFcT+ktczLKciq3qw1tTHZHcc=";
})
2023-02-02 15:18:12 +00:00
(fetchpatch {
name = "ssh-hpn-channels.patch";
2023-05-24 08:18:14 +00:00
inherit url;
extraPrefix = "";
includes = [ "channels.c" ];
2023-05-24 08:18:14 +00:00
hash = "sha256-pDLUbjv5XIyByEbiRAXC3WMUPKmn15af1stVmcvr7fE=";
2023-02-02 15:18:12 +00:00
})
];
extraNativeBuildInputs = [ autoreconfHook ];
extraConfigureFlags = [ "--with-hpn" ];
2023-03-21 08:22:28 +00:00
extraMeta = {
maintainers = with lib.maintainers; [ abbe ];
};
};
openssh_gssapi = common rec {
pname = "openssh-with-gssapi";
2023-10-04 19:31:21 +00:00
version = "9.5p1";
extraDesc = " with GSSAPI support";
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=";
};
2014-11-20 11:12:33 +00:00
extraPatches = [
./ssh-keysign-8.5.patch
(fetchpatch {
name = "openssh-gssapi.patch";
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=";
})
];
extraNativeBuildInputs = [ autoreconfHook ];
};
}