mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #318268 from katexochen/prometheus-surfboard-exporter/mods
prometheus-surfboard-exporter: migrate to buildGoModule
This commit is contained in:
commit
8e45fa8062
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user