Merge pull request #318268 from katexochen/prometheus-surfboard-exporter/mods

prometheus-surfboard-exporter: migrate to buildGoModule
This commit is contained in:
Paul Meyer 2024-06-18 08:24:59 +02:00 committed by GitHub
commit 8e45fa8062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,9 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "surfboard_exporter";
version = "2.0.0";
goPackagePath = "github.com/ipstatic/surfboard_exporter";
src = fetchFromGitHub {
rev = version;
owner = "ipstatic";
@ -13,6 +11,12 @@ buildGoPackage rec {
sha256 = "11qms26648nwlwslnaflinxcr5rnp55s908rm1qpnbz0jnxf5ipw";
};
postPatch = ''
go mod init github.com/ipstatic/surfboard_exporter
'';
vendorHash = null;
passthru.tests = { inherit (nixosTests.prometheus-exporters) surfboard; };
meta = with lib; {