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