btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / bi / bird / package.nix
blobb1e3c09db214006386f37a59e0c723aa7a4ad4a5
1 { lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
3 stdenv.mkDerivation rec {
4   pname = "bird";
5   version = "2.15.1";
7   src = fetchurl {
8     url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
9     hash = "sha256-SOhcYi3hZHVsEy6netGoqVzJ/QE3/9DYgnRlic51x10=";
10   };
12   nativeBuildInputs = [ flex bison ];
13   buildInputs = [ readline libssh ];
15   patches = [
16     ./dont-create-sysconfdir-2.patch
17   ];
19   CPP="${stdenv.cc.targetPrefix}cpp -E";
21   configureFlags = [
22     "--localstatedir=/var"
23     "--runstatedir=/run/bird"
24   ];
26   passthru.tests = nixosTests.bird;
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   };