Merge pull request #193509 from aaronjheng/prometheus-collectd-exporter

prometheus-collectd-exporter: use buildGoModule
This commit is contained in:
Benjamin Staffin 2022-09-29 16:27:09 -04:00 committed by GitHub
commit 7afc1c5b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,20 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "collectd-exporter";
version = "0.5.0";
rev = version;
goPackagePath = "github.com/prometheus/collectd_exporter";
src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "collectd_exporter";
rev = "v${version}";
sha256 = "0vb6vnd2j87iqxdl86j30dk65vrv4scprv200xb83203aprngqgh";
};
vendorSha256 = null;
ldflags = [ "-s" "-w" ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; };
meta = with lib; {