Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ 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";
|
|
};
|
|
}
|