Skip to content

Commit

Permalink
openssh: 7.7p1 -> 7.9p1 (NixOS#48784)
Browse files Browse the repository at this point in the history
added openssh_gssapi to make it easier to test the patched version

the HPN edition isn't available on top of 7.9p1 yet

fix-host-key-algorithms-plus.patch didn't apply anymore, assuming it's
fixed.

release notes: https://www.openssh.com/txt/release-7.9
  • Loading branch information
zimbatm committed Oct 25, 2018
1 parent 2cc4200 commit 2337c75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 66 deletions.
20 changes: 6 additions & 14 deletions pkgs/tools/networking/openssh/default.nix
Expand Up @@ -13,39 +13,31 @@ let
gssapiPatch = fetchpatch {
name = "openssh-gssapi.patch";
url = "https://salsa.debian.org/ssh-team/openssh/raw/"
+ "e395eed38096fcda74398424ea94de3ec44effd5"
+ "d80ebbf028196b2478beebf5a290b97f35e1eed9"
+ "/debian/patches/gssapi.patch";
sha256 = "0x7xysgdahb4jaq0f28g2d7yzp0d3mh59i4xnffszvjndhvbk27x";
sha256 = "14j9cabb3gkhkjc641zbiv29mbvsmgsvis3fbj8ywsd21zc7m2wv";
};

in
with stdenv.lib;
stdenv.mkDerivation rec {
name = "openssh-${version}";
version = if hpnSupport then "7.7p1" else "7.7p1";
version = if hpnSupport then "7.8p1" else "7.9p1";

src = if hpnSupport then
fetchurl {
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-7_7_P1.tar.gz";
sha256 = "1l4k8mg3gnzxbz53cma8s6ak56waz03ijsr08p8vgpi0c2rc5ri5";
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-7_8_P1.tar.gz";
sha256 = "05q5hxx7fzcgd8a5i0zk4fwvmnz4xqk04j489irnwm7cka7xdqxw";
}
else
fetchurl {
url = "mirror://openbsd/OpenSSH/portable/${name}.tar.gz";
sha256 = "13vbbrvj3mmfhj83qyrg5c0ipr6bzw5s65dy4k8gr7p9hkkfffyp";
sha256 = "1b8sy6v0b8v4ggmknwcqx3y1rjcpsll0f1f8f4vyv11x4ni3njvb";
};

patches =
[
# Remove on update!
(fetchpatch {
name = "fix-tunnel-forwarding.diff";
url = "https://github.com/openssh/openssh-portable/commit/cfb1d9bc767.diff";
sha256 = "1mszj7f1kj6bazr7asbi1bi4238lfpilpp98f6c1dn3py4fbsdg8";
})

./locale_archive.patch
./fix-host-key-algorithms-plus.patch

# See discussion in https://github.com/NixOS/nixpkgs/pull/16966
./dont_create_privsep_path.patch
Expand Down
52 changes: 0 additions & 52 deletions pkgs/tools/networking/openssh/fix-host-key-algorithms-plus.patch

This file was deleted.

4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -4515,6 +4515,10 @@ with pkgs;

openssh_hpn = pkgs.appendToName "with-hpn" (openssh.override { hpnSupport = true; });

openssh_gssapi = pkgs.appendToName "with-gssapi" (openssh.override {
withGssapiPatches = true;
});

opensp = callPackage ../tools/text/sgml/opensp { };

opentracker = callPackage ../applications/networking/p2p/opentracker { };
Expand Down

0 comments on commit 2337c75

Please sign in to comment.