2022-12-11 10:03:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2021-01-31 01:03:55 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "artifactory_exporter";
|
2023-06-17 10:01:50 +02:00
|
|
|
version = "1.13.2";
|
2021-01-31 01:03:55 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peimanja";
|
|
|
|
repo = pname;
|
|
|
|
rev = rev;
|
2023-06-17 10:01:50 +02:00
|
|
|
hash = "sha256-m5ToXry1LgjWSTU9bjOtsgfVF8wKiKuTwCIC7jNGSKY=";
|
2021-01-31 01:03:55 +01:00
|
|
|
};
|
|
|
|
|
2023-06-17 10:01:50 +02:00
|
|
|
vendorHash = "sha256-ikWxTHmqHFWAReKMf6LFza/bhkcfxa4euXUixKPvcpQ=";
|
2021-01-31 01:03:55 +01:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [
|
2022-12-11 10:03:39 +01:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-26 08:45:51 +02:00
|
|
|
"-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"
|
|
|
|
];
|
2021-01-31 01:03:55 +01:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) artifactory; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JFrog Artifactory Prometheus Exporter";
|
|
|
|
homepage = "https://github.com/peimanja/artifactory_exporter";
|
2022-12-11 10:03:39 +01:00
|
|
|
changelog = "https://github.com/peimanja/artifactory_exporter/releases/tag/v${version}";
|
2021-01-31 01:03:55 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lbpdt ];
|
|
|
|
};
|
|
|
|
}
|