nixpkgs/pkgs/servers/monitoring/prometheus/artifactory-exporter.nix
R. RyanTM 96c456834f
prometheus-artifactory-exporter: 1.9.5 -> 1.10.0
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
2022-12-11 17:03:39 +08:00

41 lines
1.1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "artifactory_exporter";
version = "1.10.0";
rev = "v${version}";
src = fetchFromGitHub {
owner = "peimanja";
repo = pname;
rev = rev;
hash = "sha256-Yzdh9xpgPLbN9J5oBvrrPuVMTq2F3mpE544sAo7gmng=";
};
vendorHash = "sha256-5yzBKgjJCv4tgdBS6XmZUq1ebbka0LOuv6BARWO7kQg=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X github.com/prometheus/common/version.Version=${version}"
"-X github.com/prometheus/common/version.Revision=${rev}"
"-X github.com/prometheus/common/version.Branch=master"
"-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
];
passthru.tests = { inherit (nixosTests.prometheus-exporters) artifactory; };
meta = with lib; {
description = "JFrog Artifactory Prometheus Exporter";
homepage = "https://github.com/peimanja/artifactory_exporter";
changelog = "https://github.com/peimanja/artifactory_exporter/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ lbpdt ];
};
}