Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
autoreconfHook,
|
|
flex,
|
|
bison,
|
|
readline,
|
|
libssh,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bird";
|
|
version = "2.17.2";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.nic.cz";
|
|
owner = "labs";
|
|
repo = "bird";
|
|
rev = "v${version}";
|
|
hash = "sha256-4kEtSVuEwJIYIk4+OBjBLz72i60TOUKIbvdNKlrcUYM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
flex
|
|
bison
|
|
];
|
|
|
|
buildInputs = [
|
|
readline
|
|
libssh
|
|
];
|
|
|
|
patches = [
|
|
./dont-create-sysconfdir-2.patch
|
|
];
|
|
|
|
CPP = "${stdenv.cc.targetPrefix}cpp -E";
|
|
|
|
configureFlags = [
|
|
"--localstatedir=/var"
|
|
"--runstatedir=/run/bird"
|
|
];
|
|
|
|
passthru.tests = nixosTests.bird2;
|
|
|
|
meta = {
|
|
changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS";
|
|
description = "BIRD Internet Routing Daemon";
|
|
homepage = "https://bird.network.cz";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ herbetom ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|