nixpkgs/pkgs/by-name/bi/bird3/package.nix

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

57 lines
1019 B
Nix
Raw Normal View History

2025-01-11 21:18:46 +01:00
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
2025-01-11 21:18:46 +01:00
flex,
bison,
readline,
libssh,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "bird";
version = "3.1.2";
src = fetchFromGitLab {
domain = "gitlab.nic.cz";
owner = "labs";
repo = "bird";
rev = "v${version}";
hash = "sha256-3Ms9yozF/Ox/kSP9rzKvkrA0VBPQb1VjtbEInl8/KZM=";
2025-01-11 21:18:46 +01:00
};
nativeBuildInputs = [
autoreconfHook
2025-01-11 21:18:46 +01:00
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.bird3;
2025-01-11 21:18:46 +01:00
2025-06-02 08:42:56 +02:00
meta = {
2025-01-11 21:18:46 +01:00
changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS";
description = "BIRD Internet Routing Daemon";
homepage = "https://bird.nic.cz/";
2025-06-02 08:42:56 +02:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ herbetom ];
platforms = lib.platforms.linux;
2025-01-11 21:18:46 +01:00
};
}