nixpkgs/pkgs/servers/bird/default.nix
Jörg Thalheim 9abf72f229
bird1: drop package + modules
reason: no longer maintained upstream.
2022-02-25 11:39:34 +01:00

35 lines
860 B
Nix

{ lib, stdenv, fetchurl, fetchpatch, flex, bison, readline, libssh, nixosTests }:
stdenv.mkDerivation rec {
pname = "bird";
version = "2.0.9";
src = fetchurl {
sha256 = "sha256-dnhrvN7TBh4bsiGwEfLMACIewGPenNoASn2bBhoJbV4=";
url = "ftp://bird.network.cz/pub/bird/${pname}-${version}.tar.gz";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ readline libssh ];
patches = [
(./. + "/dont-create-sysconfdir-${builtins.substring 0 1 version}.patch")
];
CPP="${stdenv.cc.targetPrefix}cpp -E";
configureFlags = [
"--localstatedir=/var"
];
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;
};
}