diff options
Diffstat (limited to 'overlays/prometheus-lvm-exporter.nix')
-rw-r--r-- | overlays/prometheus-lvm-exporter.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/overlays/prometheus-lvm-exporter.nix b/overlays/prometheus-lvm-exporter.nix new file mode 100644 index 00000000..ead1e820 --- /dev/null +++ b/overlays/prometheus-lvm-exporter.nix | |||
@@ -0,0 +1,18 @@ | |||
1 | { final, prev, sources, ... }: { | ||
2 | prometheus-lvm-exporter = final.buildGoModule { | ||
3 | pname = "prometheus-lvm-exporter"; | ||
4 | inherit (sources.prometheus-lvm-exporter) version src; | ||
5 | |||
6 | vendorHash = "sha256-DyvUM3pP2P1IGfXKpkR5Y4CVcnSBsnNy0kd3WTjbWpg="; | ||
7 | |||
8 | doCheck = false; | ||
9 | |||
10 | nativeBuildInputs = with final; [ makeWrapper ]; | ||
11 | |||
12 | postInstall = '' | ||
13 | wrapProgram $out/bin/prometheus-lvm-exporter \ | ||
14 | --set LC_ALL C \ | ||
15 | --add-flags -command --add-flags ${final.lvm2.bin}/bin/lvm | ||
16 | ''; | ||
17 | }; | ||
18 | } | ||