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