summaryrefslogtreecommitdiff
path: root/overlays/prometheus-lvm-exporter.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-11 16:15:19 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-11 16:15:19 +0100
commit8fda0125d8641018db73b2ccafe8b8302937660f (patch)
tree3f5a98d2baf692cc7098dce1abedb50359c3b68e /overlays/prometheus-lvm-exporter.nix
parent7e97353075b4acee96488d022e456f80f4f903ed (diff)
downloadnixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.gz
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.bz2
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.tar.xz
nixos-8fda0125d8641018db73b2ccafe8b8302937660f.zip
...
Diffstat (limited to 'overlays/prometheus-lvm-exporter.nix')
-rw-r--r--overlays/prometheus-lvm-exporter.nix18
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}