Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "ping-exporter"; 9 version = "1.1.3"; 10 11 src = fetchFromGitHub { 12 owner = "czerwonk"; 13 repo = "ping_exporter"; 14 rev = version; 15 hash = "sha256-Jdo+6/e9gES8q4wTGRuy5HSj7VimOMZ9q3guKDcKJxg="; 16 }; 17 18 vendorHash = "sha256-1oNbg6lu9xLJKeYOzK23HOTLJc3KWri7z4/2AZ7Hzms="; 19 20 meta = with lib; { 21 description = "Prometheus exporter for ICMP echo requests"; 22 mainProgram = "ping_exporter"; 23 homepage = "https://github.com/czerwonk/ping_exporter"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ nudelsalat ]; 26 }; 27}