1 { lib, buildGoModule, fetchFromGitHub, makeWrapper, varnish, nixosTests }:
4 pname = "prometheus_varnish_exporter";
7 src = fetchFromGitHub {
9 repo = "prometheus_varnish_exporter";
11 hash = "sha256-1sUzKLNkLP/eX0wYSestMAJpjAmX1iimjYoFYb6Mgpc=";
14 vendorHash = "sha256-P2fR0U2O0Y4Mci9jkAMb05WR+PrpuQ59vbLMG5b9KQI=";
16 nativeBuildInputs = [ makeWrapper ];
19 wrapProgram $out/bin/prometheus_varnish_exporter \
20 --prefix PATH : "${varnish}/bin"
23 passthru.tests = { inherit (nixosTests.prometheus-exporters) varnish; };
26 homepage = "https://github.com/jonnenauha/prometheus_varnish_exporter";
27 description = "Varnish exporter for Prometheus";
28 mainProgram = "prometheus_varnish_exporter";
29 license = lib.licenses.mit;
30 maintainers = with lib.maintainers; [ MostAwesomeDude ];