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 = "prom2json"; 9 version = "1.4.2"; 10 11 src = fetchFromGitHub { 12 rev = "v${version}"; 13 owner = "prometheus"; 14 repo = "prom2json"; 15 sha256 = "sha256-3A26xMXJv2MMpFoc0zKZdSLg9WCueIsKdRdyM2NsUJw="; 16 }; 17 18 vendorHash = "sha256-2XZYc6byupFTR2HCAVSL3wLYWwuzkkhqegzZRTakcgI="; 19 20 meta = with lib; { 21 description = "Tool to scrape a Prometheus client and dump the result as JSON"; 22 mainProgram = "prom2json"; 23 homepage = "https://github.com/prometheus/prom2json"; 24 license = licenses.asl20; 25 maintainers = with maintainers; [ benley ]; 26 }; 27}