openssh-portable: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-09-19 19:10:58 +02:00
parent 02c1bcfc38
commit cfaa89b03b

View File

@ -1,7 +1,8 @@
{ callPackage, fetchurl, fetchpatch, autoreconfHook }: { callPackage, fetchurl, fetchpatch, fetchFromGitHub, autoreconfHook }:
let let
common = opts: callPackage (import ./common.nix opts) { }; common = opts: callPackage (import ./common.nix opts) { };
in { in
{
openssh = common rec { openssh = common rec {
pname = "openssh"; pname = "openssh";
@ -20,9 +21,11 @@ in {
version = "8.4p1"; version = "8.4p1";
extraDesc = " with high performance networking patches"; extraDesc = " with high performance networking patches";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/rapier1/openssh-portable/archive/hpn-KitchenSink-${builtins.replaceStrings [ "." "p" ] [ "_" "_P" ] version}.tar.gz"; owner = "rapier1";
sha256 = "1x2afjy1isslbg7qlvhhs4zhj2c8q2h1ljz0fc5b4h9pqcm9j540"; repo = "openssh-portable";
rev = "hpn-KitchenSink-${builtins.replaceStrings [ "." "p" ] [ "_" "_P" ] version}";
hash = "sha256-SYQPDGxZR41m4g603RaZaOYm4vCr9uZnFnZoKhruueY=";
}; };
extraPatches = [ extraPatches = [