1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "smokeping_prober";
10 Revision = "722200c4adbd6d1e5d847dfbbd9dec07aa4ca38d";
14 varFlags = lib.concatStringsSep " " (lib.mapAttrsToList (name: value: "-X github.com/prometheus/common/version.${name}=${value}") setVars);
16 "${varFlags}" "-s" "-w"
19 src = fetchFromGitHub {
21 repo = "smokeping_prober";
23 sha256 = "sha256-CqUkJLyxCuBDbfPLSXuGNlyg5POh6jYyXUxQ9tF+w3s=";
25 vendorHash = "sha256-iKAT10pD2ctVIBdDw/AmHYtoZDW9XC8ruIxqlVoAuWY=";
29 passthru.tests = { inherit (nixosTests.prometheus-exporters) smokeping; };
32 description = "Prometheus exporter for sending continual ICMP/UDP pings";
33 mainProgram = "smokeping_prober";
34 homepage = "https://github.com/SuperQ/smokeping_prober";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ lukegb ];