summaryrefslogtreecommitdiff
path: root/overlays/prometheus-lvm-exporter.nix
blob: 6b671cab7aaa970db06dd60db7b2ed3dfb743810 (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-vqxsg70ShMo4OVdzhqYDj/HT3RTpCUBGHze/EkbBJig=";

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