Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 733 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "rabbitmq_exporter"; 9 version = "1.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "kbudde"; 13 repo = "rabbitmq_exporter"; 14 tag = "v${version}"; 15 hash = "sha256-A6pBhfH+BK+0QQUl7H1y7TLd5hSaSyGCvR4Br/3DaN4="; 16 }; 17 18 vendorHash = "sha256-O/3y3FwFp4gUFN8OmVeoHU6yJZYng7rU9VeDcCwWayI="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 checkFlags = [ 26 # Disable flaky tests on Darwin 27 "-skip=TestWholeApp|TestExporter" 28 ]; 29 30 meta = { 31 description = "Prometheus exporter for RabbitMQ"; 32 mainProgram = "rabbitmq_exporter"; 33 homepage = "https://github.com/kbudde/rabbitmq_exporter"; 34 license = lib.licenses.mit; 35 maintainers = [ ]; 36 }; 37}