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 = "collectd-exporter"; 10 version = "0.7.0"; 11 12 src = fetchFromGitHub { 13 owner = "prometheus"; 14 repo = "collectd_exporter"; 15 rev = "v${version}"; 16 sha256 = "sha256-MxgHJ9+e94ReY/8ISPfGEX9Z9ZHDyNsV0AqlPfsjXvc="; 17 }; 18 19 vendorHash = "sha256-kr8mHprIfXc/Yj/w2UKBkqIYZHmWtBLjqYDvKSXlozQ="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 ]; 25 26 passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; }; 27 28 meta = with lib; { 29 description = "Relay server for exporting metrics from collectd to Prometheus"; 30 mainProgram = "collectd_exporter"; 31 homepage = "https://github.com/prometheus/collectd_exporter"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ benley ]; 34 }; 35}