blob: 5c5fec3d892a454da1bffc7f4abbe4a75735716c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchurl, fetchpatch, flex, bison, readline, libssh, nixosTests }:
stdenv.mkDerivation rec {
pname = "bird";
version = "2.0.9";
src = fetchurl {
sha256 = "sha256-dnhrvN7TBh4bsiGwEfLMACIewGPenNoASn2bBhoJbV4=";
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libssh ];
patches = [
./dont-create-sysconfdir-2.patch
(fetchurl {
url = "https://gitlab.nic.cz/labs/bird/-/commit/fcb4dd0c831339c4374ace17d8f2ae6ebfeed279.patch";
sha256 = "sha256-PEgpRnOGLa1orHJDEHlblnVhBVv7XOKPR70M1wUMxMQ=";
})
];
CPP="${stdenv.cc.targetPrefix}cpp -E";
configureFlags = [
"--localstatedir=/var"
"--runstatedir=/run/bird"
];
passthru.tests = nixosTests.bird;
meta = with lib; {
description = "BIRD Internet Routing Daemon";
homepage = "http://bird.network.cz";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fpletz globin ];
platforms = platforms.linux;
};
}
|