nixpkgs/pkgs/servers/bird/default.nix

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

37 lines
902 B
Nix
Raw Normal View History

2022-06-27 09:41:20 +00:00
{ lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
2013-08-31 15:05:24 +00:00
stdenv.mkDerivation rec {
pname = "bird";
version = "2.15";
2013-08-31 15:05:24 +00:00
src = fetchurl {
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
hash = "sha256-emRY+kEQnABVMbI+P3q9Y9cACpnRldtJROvMtTntAvA=";
};
2013-08-31 15:05:24 +00:00
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libssh ];
2022-01-25 14:15:52 +00:00
patches = [
./dont-create-sysconfdir-2.patch
];
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; {
changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS";
description = "BIRD Internet Routing Daemon";
homepage = "http://bird.network.cz";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ globin ];
platforms = platforms.linux;
2013-08-31 15:05:24 +00:00
};
}