Skip to content

Commit

Permalink
bird3: init at 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
herbetom committed Jan 20, 2025
1 parent 7931ab4 commit 06829ac
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/bi/bird3/dont-create-sysconfdir-2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,2 +165,2 @@
install: all
- $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/$(runstatedir)
+ $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir)
51 changes: 51 additions & 0 deletions pkgs/by-name/bi/bird3/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
stdenv,
fetchurl,
flex,
bison,
readline,
libssh,
nixosTests,
}:

stdenv.mkDerivation rec {
pname = "bird";
version = "3.0.1";

src = fetchurl {
url = "https://bird.network.cz/download/bird-${version}.tar.gz";
hash = "sha256-iGhAPKqE4lVLtuYK2+fGV+e7fErEGRDjmPNeI2upD6E=";
};

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 = "https://bird.network.cz";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ herbetom ];
platforms = platforms.linux;
};
}

0 comments on commit 06829ac

Please sign in to comment.