default.nix (674B)
1 { stdenv, lib, fetchFromGitHub, buildGoModule, cyrus_sasl }: 2 3 buildGoModule rec { 4 pname = "mqtt-proxy"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "grepplabs"; 9 repo = "mqtt-proxy"; 10 rev = "v${version}"; 11 hash = "sha256-odSVoBBjg4TGP5Jw+7p9+kTBR2JP1ZJUKR3lBcOjK4g="; 12 }; 13 14 vendorHash = null; 15 16 buildInputs = [ cyrus_sasl ]; 17 18 ldflags = [ "-X github.com/prometheus/common/version.Version=${version}" ]; 19 20 meta = with lib; { 21 description = "MQTT Proxy allows MQTT clients to send messages to other messaging systems"; 22 inherit (src.meta) homepage; 23 #license = licenses.cc-by-nc-nd-40; 24 maintainers = [ maintainers.sikmir ]; 25 }; 26 }