hackens-org-configurations/hosts/hackens-org/modules/mqtt2prometheus/mqtt2prometheus.nix
2022-04-25 00:53:18 +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
'';
}