Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / surfboard-exporter.nix
blob1f215b4ffdc6d7d0128e767d206e027e0f21d80f
1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
3 buildGoModule rec {
4   pname = "surfboard_exporter";
5   version = "2.0.0";
7   src = fetchFromGitHub {
8     rev = version;
9     owner = "ipstatic";
10     repo = "surfboard_exporter";
11     sha256 = "11qms26648nwlwslnaflinxcr5rnp55s908rm1qpnbz0jnxf5ipw";
12   };
14   postPatch = ''
15     go mod init github.com/ipstatic/surfboard_exporter
16   '';
18   vendorHash = null;
20   passthru.tests = { inherit (nixosTests.prometheus-exporters) surfboard; };
22   meta = with lib; {
23     description = "Arris Surfboard signal metrics exporter";
24     mainProgram = "surfboard_exporter";
25     homepage = "https://github.com/ipstatic/surfboard_exporter";
26     license = licenses.mit;
27     maintainers = with maintainers; [ disassembler ];
28     platforms = platforms.unix;
29   };