From ea1ac9af244e8830da758937a14a2b793d803c56 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 13 Dec 2021 15:33:22 +0100 Subject: [PATCH] easyrsa2: switch to fetchFromGitHub --- pkgs/tools/networking/easyrsa/2.x.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/easyrsa/2.x.nix b/pkgs/tools/networking/easyrsa/2.x.nix index 42188cfbfff1..b88aeda0fc5a 100644 --- a/pkgs/tools/networking/easyrsa/2.x.nix +++ b/pkgs/tools/networking/easyrsa/2.x.nix @@ -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 = ''