Skip to content

Commit

Permalink
Merge pull request #318268 from katexochen/prometheus-surfboard-expor…
Browse files Browse the repository at this point in the history
…ter/mods

prometheus-surfboard-exporter: migrate to buildGoModule
  • Loading branch information
katexochen authored Jun 18, 2024
2 parents f7db118 + 7072207 commit 8e45fa8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/servers/monitoring/prometheus/surfboard-exporter.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{ 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";
repo = "surfboard_exporter";
sha256 = "11qms26648nwlwslnaflinxcr5rnp55s908rm1qpnbz0jnxf5ipw";
};

postPatch = ''
go mod init github.com/ipstatic/surfboard_exporter
'';

vendorHash = null;

passthru.tests = { inherit (nixosTests.prometheus-exporters) surfboard; };

meta = with lib; {
Expand Down

0 comments on commit 8e45fa8

Please sign in to comment.