1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/servers/bird/default.nix
2024-04-13 18:20:43 +02:00

37 lines
906 B
Nix

{ lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
stdenv.mkDerivation rec {
pname = "bird";
version = "2.15.1";
src = fetchurl {
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
hash = "sha256-SOhcYi3hZHVsEy6netGoqVzJ/QE3/9DYgnRlic51x10=";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libssh ];
patches = [
./dont-create-sysconfdir-2.patch
];
CPP="${stdenv.cc.targetPrefix}cpp -E";
configureFlags = [
"--localstatedir=/var"
"--runstatedir=/run/bird"
];
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; [ herbetom ];
platforms = platforms.linux;
};
}