Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "bind_exporter"; 10 version = "0.7.0"; 11 12 src = fetchFromGitHub { 13 rev = "v${version}"; 14 owner = "prometheus-community"; 15 repo = "bind_exporter"; 16 sha256 = "sha256-x/XGatlXCKo9cI92JzFItApsjuZAfZX+8IZRpy7PVUo="; 17 }; 18 19 vendorHash = "sha256-f0ei/zotOj5ebURAOWUox/7J3jS2abQ5UgjninI9nRk="; 20 21 passthru.tests = { inherit (nixosTests.prometheus-exporters) bind; }; 22 23 meta = with lib; { 24 description = "Prometheus exporter for bind9 server"; 25 mainProgram = "bind_exporter"; 26 homepage = "https://github.com/digitalocean/bind_exporter"; 27 license = licenses.asl20; 28 maintainers = with maintainers; [ rtreffer ]; 29 }; 30}