Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule 2, fetchFromGitHub 3, lib 4}: 5 6buildGoModule rec { 7 pname = "speedtest-exporter"; 8 version = "0.3.2"; 9 10 src = fetchFromGitHub { 11 owner = "nlamirault"; 12 repo = "speedtest_exporter"; 13 rev = "v${version}"; 14 hash = "sha256-WIMDv63sHyZVw3Ct5LFXCIufj7sU2H81n+hT/NiPMeQ="; 15 }; 16 17 vendorHash = "sha256-Lm73pZzdNZv7J+vKrtQXxm4HiAuB9lugKT/oanmD0HM="; 18 19 meta = with lib; { 20 description = "Prometheus exporter for Speedtest metrics"; 21 homepage = "https://github.com/nlamirault/speedtest_exporter"; 22 license = licenses.asl20; 23 maintainers = with maintainers; [ urandom ]; 24 mainProgram = "speedtest_exporter"; 25 }; 26}