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:
Tom Herbers 2025-05-28 00:47:04 +02:00
parent ad331efcaf
commit 1c2e5e194f
No known key found for this signature in database
GPG key ID: 841A5B0DCEDA6192

View file

@ -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