package.nix (806B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 cyrus_sasl, 6 }: 7 8 buildGoModule (finalAttrs: { 9 pname = "mqtt-proxy"; 10 version = "0.5.0"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "grepplabs"; 16 repo = "mqtt-proxy"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-odSVoBBjg4TGP5Jw+7p9+kTBR2JP1ZJUKR3lBcOjK4g="; 19 }; 20 21 vendorHash = null; 22 23 buildInputs = [ cyrus_sasl ]; 24 25 ldflags = [ 26 "-s" 27 "-X github.com/prometheus/common/version.Version=${finalAttrs.version}" 28 ]; 29 30 meta = { 31 description = "MQTT Proxy allows MQTT clients to send messages to other messaging systems"; 32 homepage = "https://github.com/grepplabs/mqtt-proxy"; 33 #license = lib.licenses.cc-by-nc-nd-40; 34 maintainers = [ lib.maintainers.sikmir ]; 35 mainProgram = "mqtt-proxy"; 36 }; 37 })
