freeradius: fetchurl -> fetchFromGitHub
Verified the hash matches the result from `fetchzip`
This commit is contained in:
parent
4761a13485
commit
a59cac9dfb
@ -1,11 +1,11 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, bsd-finger
|
, bsd-finger
|
||||||
, perl
|
, perl
|
||||||
, talloc
|
, talloc
|
||||||
, linkOpenssl? true, openssl
|
, linkOpenssl ? true, openssl
|
||||||
, withCap ? true, libcap
|
, withCap ? true, libcap
|
||||||
, withCollectd ? false, collectd
|
, withCollectd ? false, collectd
|
||||||
, withJson ? false, json_c
|
, withJson ? false, json_c
|
||||||
@ -25,9 +25,11 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "freeradius";
|
pname = "freeradius";
|
||||||
version = "3.2.5";
|
version = "3.2.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/FreeRADIUS/freeradius-server/releases/download/release_${lib.replaceStrings [ "." ] [ "_" ] version}/freeradius-server-${version}.tar.gz";
|
owner = "FreeRADIUS";
|
||||||
hash = "sha256-HnX1/Blh2YVNHLPGkhYS++K57bjuUIpafL1p8edgcRU=";
|
repo = "freeradius-server";
|
||||||
|
rev = "refs/tags/release_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
||||||
|
hash = "sha256-1n447BpTqmkg5tyXe9yPzjfDoh7wMLZhwouUEzkwxKM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
Loading…
Reference in New Issue
Block a user