clatd: 1.6 -> 2.1.0

Removes iptables from clatd wrapper in favor of nftables used upstream.
Also adds systemd-networkd integration.

Jared Baur ccae9bb5 ded63f10

+13 -9
+13 -9
pkgs/by-name/cl/clatd/package.nix
··· 7 perlPackages, 8 tayga, 9 iproute2, 10 - iptables, 11 nixosTests, 12 }: 13 14 - stdenv.mkDerivation rec { 15 pname = "clatd"; 16 - version = "1.6"; 17 18 src = fetchFromGitHub { 19 owner = "toreanderson"; 20 repo = "clatd"; 21 - rev = "v${version}"; 22 - hash = "sha256-ZUGWQTXXgATy539NQxkZSvQA7HIWkIPsw1NJrz0xKEg="; 23 }; 24 25 strictDeps = true; ··· 33 perl 34 NetIP 35 NetDNS 36 ]; 37 38 makeFlags = [ "PREFIX=$(out)" ]; ··· 47 --set PERL5LIB $PERL5LIB \ 48 --prefix PATH : ${ 49 lib.makeBinPath [ 50 - tayga 51 - iproute2 52 - iptables 53 ] 54 } 55 ''; ··· 64 mainProgram = "clatd"; 65 platforms = platforms.linux; 66 }; 67 - }
··· 7 perlPackages, 8 tayga, 9 iproute2, 10 + nftables, 11 + systemd, 12 nixosTests, 13 }: 14 15 + assert (lib.assertMsg systemd.withNetworkd "systemd for clatd must be built with networkd support"); 16 + stdenv.mkDerivation (finalAttrs: { 17 pname = "clatd"; 18 + version = "2.1.0"; 19 20 src = fetchFromGitHub { 21 owner = "toreanderson"; 22 repo = "clatd"; 23 + rev = "v${finalAttrs.version}"; 24 + hash = "sha256-hNFuS6pdaA/FTIUeuwjGovlHcPh248Au1VXCzMuYwLU="; 25 }; 26 27 strictDeps = true; ··· 35 perl 36 NetIP 37 NetDNS 38 + JSON 39 ]; 40 41 makeFlags = [ "PREFIX=$(out)" ]; ··· 50 --set PERL5LIB $PERL5LIB \ 51 --prefix PATH : ${ 52 lib.makeBinPath [ 53 + tayga # tayga 54 + iproute2 # ip 55 + nftables # nft 56 + systemd # networkctl 57 ] 58 } 59 ''; ··· 68 mainProgram = "clatd"; 69 platforms = platforms.linux; 70 }; 71 + })