2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bird";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.0.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-PsRiojfQbR9EVdbsAKQvCxaGBh/JiOXImoQdAd11O1M=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ readline libssh ];
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
patches = [
|
|
|
|
./dont-create-sysconfdir-2.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
CPP="${stdenv.cc.targetPrefix}cpp -E";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--runstatedir=/run/bird"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
passthru.tests = nixosTests.bird;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS";
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "BIRD Internet Routing Daemon";
|
|
|
|
homepage = "http://bird.network.cz";
|
|
|
|
license = licenses.gpl2Plus;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2022-03-05 16:20:37 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|