summaryrefslogtreecommitdiff
path: root/overlays/prometheus-lvm-exporter.nix
blob: bd2ce47b8b6905aedeb9128101c61485416ee7dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ final, prev, sources, ... }: {
  prometheus-lvm-exporter = final.buildGoModule {
    pname = "prometheus-lvm-exporter";
    inherit (sources.prometheus-lvm-exporter) version src;

    vendorHash = "sha256-5rNrCkX+y8pItkpkvYO7uVgT/sIkUthwJ41RkMsefL4=";

    doCheck = false;

    nativeBuildInputs = with final; [ makeWrapper ];

    postInstall = ''
      wrapProgram $out/bin/prometheus-lvm-exporter \
        --set LC_ALL C \
        --add-flags --command=${final.lvm2.bin}/bin/lvm
    '';
  };
}