7 pname = "zfs_exporter";
10 src = fetchFromGitHub {
14 hash = "sha256-wPahjWTZLt5GapkOmGdGSicAmSGte2BHf6zZBHd7D3g=";
17 vendorHash = "sha256-EUeP7ysMnFeQO8Gaxhhonxk40cUv04MSiEDsaEcjTuM=";
22 "-X github.com/prometheus/common/version.Version=${version}"
23 "-X github.com/prometheus/common/version.Revision=unknown"
24 "-X github.com/prometheus/common/version.Branch=unknown"
25 "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
26 "-X github.com/prometheus/common/version.BuildDate=unknown"
30 install -Dm444 -t $out/share/doc/${pname} *.md
34 description = "ZFS Exporter for the Prometheus monitoring system";
35 mainProgram = "zfs_exporter";
36 homepage = "https://github.com/pdf/zfs_exporter";
37 license = licenses.mit;
38 maintainers = with maintainers; [ peterhoeg ];