git.iko.soy/typeable/nixpkgs
on master help sign in
openssh: Add gssapi patch used by other major distros

This patch is borrowed verbatim from Debian, where it is actively maintained for each openssh update. It's also included in Fedora's openssh package, in Arch linux as openssh-gssapi in the AUR, in MacOS X, and presumably various other platforms and linux distros. The main relevant parts of this patch: - Adds several ssh_config options: GSSAPIKeyExchange, GSSAPITrustDNS, GSSAPIClientIdentity, GSSAPIServerIdentity GSSAPIRenewalForcesRekey - Optionally use an in-memory credentials cache api for security My primary motivation for wanting the patch is the GSSAPIKeyExchange and GSSAPITrustDNS features. My user ssh_config is shared across several OSes, and it's a lot easier to manage if they all support the same options.

commit67f4c2a7799e2dc30cae20b3c313c7b186cd1d71 authorBenjamin Staffin <bstaffin@fitbit.com> dateFri 1 Jan 2016, 16:35 (11 years ago) parentce8c8f1
1 file changed+9−2
pkgs/tools/networking/openssh/default.nix+9−2
pkgs/tools/networking/openssh/default.nix+9−2
@@ -1,7 +1,8 @@
1−{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam
1+{ stdenv, fetchurl, fetchpatch, zlib, openssl, perl, libedit, pkgconfig, pam
22, etcDir ? null
33, hpnSupport ? false
44, withKerberos ? false
5+, withGssapiPatches ? withKerberos
56, kerberos
67}:
78
@@ -14,6 +15,11 @@ let
1415 sha256 = "682b4a6880d224ee0b7447241b684330b731018585f1ba519f46660c10d63950";
1516 };
1617
18+ gssapiSrc = fetchpatch {
19+ url = "http://anonscm.debian.org/cgit/pkg-ssh/openssh.git/plain/debian/patches/gssapi.patch?h=debian/6.9p1-3";
20+ sha256 = "03zlgkb3a1igj20kn8cz55ggaxg65h6f0kg20m39m0wsb94qjdb1";
21+ };
22+
1723in
1824with stdenv.lib;
1925stdenv.mkDerivation rec {
@@ -30,7 +36,8 @@ stdenv.mkDerivation rec {
3036 export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
3137 '';
3238
33− patches = [ ./locale_archive.patch ./openssh-6.9p1-security-7.0.patch];
39+ patches = [ ./locale_archive.patch ./openssh-6.9p1-security-7.0.patch ]
40+ ++ optional withGssapiPatches gssapiSrc;
3441
3542 buildInputs = [ zlib openssl libedit pkgconfig pam ]
3643 ++ optional withKerberos [ kerberos ];