mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
f84eb11a8a
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. This update was made based on information from https://repology.org/metapackage/bird/versions. These checks were done: - built on NixOS - ran `/nix/store/b6040kgjb2ndh4sznwnd30inslcf0ngi-bird-2.0.2/bin/bird -h` got 0 exit code - ran `/nix/store/b6040kgjb2ndh4sznwnd30inslcf0ngi-bird-2.0.2/bin/bird --help` got 0 exit code - ran `/nix/store/b6040kgjb2ndh4sznwnd30inslcf0ngi-bird-2.0.2/bin/bird --version` and found version 2.0.2 - found 2.0.2 with grep in /nix/store/b6040kgjb2ndh4sznwnd30inslcf0ngi-bird-2.0.2 - directory tree listing: https://gist.github.com/b5a31c5299059545befb8209b15fef9d
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, flex, bison, readline }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
generic = { version, sha256, enableIPv6 ? false }:
|
|
stdenv.mkDerivation rec {
|
|
name = "bird-${version}";
|
|
|
|
src = fetchurl {
|
|
inherit sha256;
|
|
url = "ftp://bird.network.cz/pub/bird/${name}.tar.gz";
|
|
};
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
buildInputs = [ readline ];
|
|
|
|
patches = [
|
|
(./. + (builtins.toPath "/dont-create-sysconfdir-${builtins.substring 0 1 version}.patch"))
|
|
];
|
|
|
|
configureFlags = [
|
|
"--localstatedir=/var"
|
|
] ++ optional enableIPv6 "--enable-ipv6";
|
|
|
|
meta = {
|
|
description = "BIRD Internet Routing Daemon";
|
|
homepage = http://bird.network.cz;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ viric fpletz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
bird = generic {
|
|
version = "1.6.3";
|
|
sha256 = "0z3yrxqb0p7f8b7r2gk4mvrwfzk45zx7yr9aifbvba1vgksiri9r";
|
|
};
|
|
|
|
bird6 = generic {
|
|
version = "1.6.3";
|
|
sha256 = "0z3yrxqb0p7f8b7r2gk4mvrwfzk45zx7yr9aifbvba1vgksiri9r";
|
|
enableIPv6 = true;
|
|
};
|
|
|
|
bird2 = generic {
|
|
version = "2.0.2";
|
|
sha256 = "03s8hcl761y3489j1krarm3r3iy5qid26508i91yvy38ypb92pq3";
|
|
};
|
|
}
|