prometheus-opnsense-exporter: init at 0.0.10 (#420694)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "prometheus-opnsense-exporter";
|
||||
version = "0.0.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "athennamind";
|
||||
repo = "opnsense-exporter";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-U/F301HkRfmzB8czwHP9u5UajR9CvxhSZwrJSIwcRd4=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/prometheus/common/version.BuildDate=1970-01-01T00:00:00Z"
|
||||
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
||||
"-X github.com/prometheus/common/version.Branch=master"
|
||||
"-X github.com/prometheus/common/version.Revision=${finalAttrs.src.rev}"
|
||||
"-X github.com/prometheus/common/version.Version=${finalAttrs.version}"
|
||||
];
|
||||
vendorHash = null;
|
||||
passthru.updateScript = nix-update-script { };
|
||||
doInstallCheck = true;
|
||||
meta = {
|
||||
changelog = "https://github.com/AthennaMind/opnsense-exporter/releases/tag/v${finalAttrs.version}";
|
||||
homepage = "https://githbub.com/AthennaMind/opnsense-exporter";
|
||||
description = "Prometheus exporter for opnsense firewall appliances";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "opnsense-exporter";
|
||||
maintainers = with lib.maintainers; [ paepcke ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user