lol

bird3: init at 3.0.1

+57
+6
pkgs/by-name/bi/bird3/dont-create-sysconfdir-2.patch
··· 1 + --- a/Makefile.in 2 + +++ b/Makefile.in 3 + @@ -165,2 +165,2 @@ 4 + install: all 5 + - $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/$(runstatedir) 6 + + $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir)
+51
pkgs/by-name/bi/bird3/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + flex, 6 + bison, 7 + readline, 8 + libssh, 9 + nixosTests, 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "bird"; 14 + version = "3.0.1"; 15 + 16 + src = fetchurl { 17 + url = "https://bird.network.cz/download/bird-${version}.tar.gz"; 18 + hash = "sha256-iGhAPKqE4lVLtuYK2+fGV+e7fErEGRDjmPNeI2upD6E="; 19 + }; 20 + 21 + nativeBuildInputs = [ 22 + flex 23 + bison 24 + ]; 25 + buildInputs = [ 26 + readline 27 + libssh 28 + ]; 29 + 30 + patches = [ 31 + ./dont-create-sysconfdir-2.patch 32 + ]; 33 + 34 + CPP = "${stdenv.cc.targetPrefix}cpp -E"; 35 + 36 + configureFlags = [ 37 + "--localstatedir=/var" 38 + "--runstatedir=/run/bird" 39 + ]; 40 + 41 + passthru.tests = nixosTests.bird; 42 + 43 + meta = with lib; { 44 + changelog = "https://gitlab.nic.cz/labs/bird/-/blob/v${version}/NEWS"; 45 + description = "BIRD Internet Routing Daemon"; 46 + homepage = "https://bird.network.cz"; 47 + license = licenses.gpl2Plus; 48 + maintainers = with maintainers; [ herbetom ]; 49 + platforms = platforms.linux; 50 + }; 51 + }