nixpkgs/pkgs/servers/bird/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

2022-01-25 14:15:52 +00:00
{ lib, stdenv, fetchurl, fetchpatch, flex, bison, readline, libssh, nixosTests }:
2013-08-31 16:05:24 +01:00
stdenv.mkDerivation rec {
pname = "bird";
version = "2.0.9";
2013-08-31 16:05:24 +01:00
src = fetchurl {
sha256 = "sha256-dnhrvN7TBh4bsiGwEfLMACIewGPenNoASn2bBhoJbV4=";
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
};
2013-08-31 16:05:24 +01:00
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libssh ];
2022-01-25 14:15:52 +00:00
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";
2018-02-11 22:28:00 +00:00
configureFlags = [
"--localstatedir=/var"
"--runstatedir=/run/bird"
];
2018-02-11 22:28:00 +00:00
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;
2013-08-31 16:05:24 +01:00
};
}