Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 743 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "prometheus-json-exporter"; 10 version = "0.7.0"; 11 12 src = fetchFromGitHub { 13 owner = "prometheus-community"; 14 repo = "json_exporter"; 15 rev = "v${version}"; 16 sha256 = "sha256-Zeq4gbwGd16MkGQRL8+bq0Ns06Yg+H9GAEo3qaMGDbc="; 17 }; 18 19 vendorHash = "sha256-41JsxA3CfQjiwZw/2KP4Re4g3gmexadHuN0lUP5rjdo="; 20 21 passthru.tests = { inherit (nixosTests.prometheus-exporters) json; }; 22 23 meta = with lib; { 24 description = "Prometheus exporter which scrapes remote JSON by JSONPath"; 25 homepage = "https://github.com/prometheus-community/json_exporter"; 26 license = licenses.asl20; 27 maintainers = [ ]; 28 mainProgram = "json_exporter"; 29 }; 30}