dependency-track-exporter: init at 0.1.2
Helper to export Prometheus metrics for Dependency-Track https://github.com/jetstack/dependency-track-exporter
This commit is contained in:
parent
604365c826
commit
9f20b6b012
1 changed files with 34 additions and 0 deletions
34
pkgs/by-name/de/dependency-track-exporter/package.nix
Normal file
34
pkgs/by-name/de/dependency-track-exporter/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "dependency-track-exporter";
|
||||||
|
version = "0.1.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jetstack";
|
||||||
|
repo = "dependency-track-exporter";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-yvScGxgkyZzEdfeJCXk/tSk3cLW+jyw00XbJVrpU6MY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-bEJFTsGQMDfZOt67ouv3PkKy+De4mL9Yk7iuslo1qYU=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-X=github.com/prometheus/common/version.Version=${version}"
|
||||||
|
"-X=github.com/prometheus/common/version.Revision=${src.rev}"
|
||||||
|
"-X=github.com/prometheus/common/version.Branch=${src.rev}"
|
||||||
|
"-X=github.com/prometheus/common/version.BuildDate=1970-01-01T00:00:00Z"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Helper to export Prometheus metrics for Dependency-Track";
|
||||||
|
homepage = "https://github.com/jetstack/dependency-track-exporter";
|
||||||
|
changelog = "https://github.com/jetstack/dependency-track-exporter/releases/tag/v${version}";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "dependency-track-exporter";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue