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 = "graphite-exporter"; 10 version = "0.16.0"; 11 12 src = fetchFromGitHub { 13 owner = "prometheus"; 14 repo = "graphite_exporter"; 15 rev = "v${version}"; 16 hash = "sha256-Dr7I4+gQXZYKUMnf/P9DgLYRb4SRaDnvqvDwHfMpAn0="; 17 }; 18 19 vendorHash = "sha256-f/ZJi3C11O+xAfXo544tlJcAt0MnTknuRmw01JXj82k="; 20 21 checkFlags = 22 let 23 skippedTests = [ 24 "TestBacktracking" 25 "TestInconsistentLabelsE2E" 26 "TestIssue111" 27 "TestIssue61" 28 "TestIssue90" 29 ]; 30 in 31 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; 32 33 passthru.tests = { inherit (nixosTests.prometheus-exporters) graphite; }; 34 35 meta = { 36 description = "Exporter for metrics exported in the Graphite plaintext protocol"; 37 homepage = "https://github.com/prometheus/graphite_exporter"; 38 license = lib.licenses.asl20; 39 maintainers = [ lib.maintainers.misterio77 ]; 40 }; 41}