diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/nftables-exporter.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/nftables-exporter.nix b/pkgs/nftables-exporter.nix new file mode 100644 index 0000000..956eab5 --- /dev/null +++ b/pkgs/nftables-exporter.nix @@ -0,0 +1,29 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "nftables_exporter"; + version = "0.1.1"; + + goPackagePath = "github.com/Intrinsec/nftables_exporter"; + + src = fetchFromGitHub { + owner = "Intrinsec"; + repo = "nftables_exporter"; + rev = "v${version}"; + sha256 = "ckZxgT4eCJlia9L6omL3EJqgew49erY11dEAnsRECx4="; + }; + + vendorSha256 = null; + + doCheck = true; + + # passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; }; + + meta = with lib; { + description = "Nftables exporter for Prometheus"; + homepage = "https://github.com/prometheus/snmp_exporter"; + license = licenses.asl20; + maintainers = with maintainers; [ orbekk ]; + platforms = platforms.unix; + }; +} |