blob: ead1e820a913dd66519228d2e874d940e9d988ee (
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-DyvUM3pP2P1IGfXKpkR5Y4CVcnSBsnNy0kd3WTjbWpg=";
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
'';
};
}
|