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