bird2: switch from fetching tarball to fetchFromGitLab
To my understanding it's current best practice to fetch from a project's git repo and not use tarballs to avoid situations where the tarball isn't as expected. Since this change seems to be trivial for bird i've implemented it here.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitLab,
|
||||
autoreconfHook,
|
||||
flex,
|
||||
bison,
|
||||
readline,
|
||||
@@ -13,15 +14,20 @@ stdenv.mkDerivation rec {
|
||||
pname = "bird";
|
||||
version = "2.17.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bird.network.cz/download/bird-${version}.tar.gz";
|
||||
hash = "sha256-v9cY36WWgZs4AWiHgyElFLRnFjMprsm7zQ+j3uA+EOk=";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.nic.cz";
|
||||
owner = "labs";
|
||||
repo = "bird";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-9Zg3UmNEW+Q26PMj3Z1XDbPFC5vatX8i7RQSUlKXlwg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
flex
|
||||
bison
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
readline
|
||||
libssh
|
||||
|
||||
Reference in New Issue
Block a user