hackens-org-configurations/hosts/hackens-org/monitoring/mqtt2prometheus.nix
2022-04-29 15:20:42 +02:00

15 lines
420 B
Nix

{ pkgs, ... }:
pkgs.buildGoModule rec {
pname = "mqtt2prometheus";
version = "0.1.6";
src = pkgs.fetchFromGitHub {
owner = "hikhvar";
repo = "mqtt2prometheus";
rev = "v${version}";
sha256 = "0dz5mrwm231g45i8rbmvaza8bm6cr4jg5vc87h41vnm7xsx815g7";
};
vendorSha256 = "1fyzij7cakhd6x2hf3rvvslvvxmfmlp881x5rz2qwm04spa18cp4";
postInstall = ''
mv $out/bin/cmd $out/bin/mqtt2prometheus
'';
}