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