summaryrefslogtreecommitdiff
path: root/overlays/prometheus-lvm-exporter.nix
blob: 240f8d85b4878a78ddffac70728c9f1d4aeed65a (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-z/fV0PzoWSDTJ44En19o7zJPPPox5ymFw7sw0Ab9t00=";

    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
    '';
  };
}