2022-06-27 12:41:20 +03:00
|
|
|
{ lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
|
2013-08-31 19:05:24 +04:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bird";
|
2023-10-07 19:54:11 +03:00
|
|
|
version = "2.14";
|
2013-08-31 19:05:24 +04:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
|
2023-10-07 19:54:11 +03:00
|
|
|
hash = "sha256-sLn2+FZlQbm+SvHwysZ1xaN4VgGlVmen7D194pc1p4Y=";
|
2022-02-21 11:21:12 +03:00
|
|
|
};
|
2013-08-31 19:05:24 +04:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ readline libssh ];
|
2022-01-25 17:15:52 +03:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
patches = [
|
2022-02-27 09:51:45 +03:00
|
|
|
./dont-create-sysconfdir-2.patch
|
2022-02-21 11:21:12 +03:00
|
|
|
];
|
2015-05-17 00:22:35 +03:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
CPP="${stdenv.cc.targetPrefix}cpp -E";
|
2018-02-12 01:28:00 +03:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
2022-02-23 09:10:02 +03:00
|
|
|
"--runstatedir=/run/bird"
|
2022-02-21 11:21:12 +03:00
|
|
|
];
|
2018-02-12 01:28:00 +03:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
passthru.tests = nixosTests.bird;
|
2015-05-17 00:22:35 +03:00
|
|
|
|
2022-02-21 11:21:12 +03:00
|
|
|
meta = with lib; {
|
2022-12-12 03:09:08 +03:00
|
|
|
changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS";
|
2022-02-21 11:21:12 +03:00
|
|
|
description = "BIRD Internet Routing Daemon";
|
|
|
|
homepage = "http://bird.network.cz";
|
|
|
|
license = licenses.gpl2Plus;
|
2022-08-03 15:13:56 +03:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2022-02-21 11:21:12 +03:00
|
|
|
platforms = platforms.linux;
|
2013-08-31 19:05:24 +04:00
|
|
|
};
|
|
|
|
}
|