5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
36 lines
902 B
Nix
36 lines
902 B
Nix
{ lib, stdenv, fetchurl, flex, bison, readline, libssh, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bird";
|
|
version = "2.14";
|
|
|
|
src = fetchurl {
|
|
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
|
|
hash = "sha256-sLn2+FZlQbm+SvHwysZ1xaN4VgGlVmen7D194pc1p4Y=";
|
|
};
|
|
|
|
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; [ globin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|