easyrsa2: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-12-13 15:33:22 +01:00
parent e2b2136d63
commit ea1ac9af24

View file

@ -1,6 +1,6 @@
{ lib
, stdenv
, fetchurl
, fetchFromGitHub
, autoreconfHook
, makeWrapper
, gnugrep
@ -11,9 +11,11 @@ stdenv.mkDerivation rec {
pname = "easyrsa";
version = "2.2.0";
src = fetchurl {
url = "https://github.com/OpenVPN/easy-rsa/archive/v${version}.tar.gz";
sha256 = "1xq4by5frb6ikn53ss3y8v7ss639dccxfq8jfrbk07ynkmk668qk";
src = fetchFromGitHub {
owner = "OpenVPN";
repo = "easy-rsa";
rev = "v${version}";
sha256 = "sha256-zTdk8mv+gC/SHK813wZ6CWZf9Jm2XkKfAPU3feFpAkY=";
};
preBuild = ''