summary refs log tree commit diff
path: root/pkgs/servers/bird/default.nix
blob: a03b81583c0e2e70b0f8663334576c67811de1ee (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
{ stdenv, fetchurl, flex, bison, readline
, enableIPv6 ? false }:

stdenv.mkDerivation rec {
  name = "bird-1.6.2";

  src = fetchurl {
    url = "ftp://bird.network.cz/pub/bird/${name}.tar.gz";
    sha256 = "1xlq78mgfyh9yvg9zld9mx75bxg9ajbn4cjjchnf0msh0ibzhlw8";
  };

  buildInputs = [ flex bison readline ];

  patches = [
    ./dont-create-sysconfdir.patch
  ];

  configureFlags = [
    "--localstatedir /var"
  ] ++ stdenv.lib.optional enableIPv6 "--enable-ipv6";

  meta = {
    description = "BIRD Internet Routing Daemon";
    homepage = http://bird.network.cz;
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [ viric fpletz ];
    platforms  = stdenv.lib.platforms.linux;
  };
}