summaryrefslogtreecommitdiff
path: root/overlays/prometheus-lvm-exporter.nix
blob: 8568e24db99275b18049c20a1b0b63257d740a6f (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 --add-flags ${final.lvm2.bin}/bin/lvm
    '';
  };
}