package.nix (815B)
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 "-w" 28 "-X github.com/prometheus/common/version.Version=${finalAttrs.version}" 29 ]; 30 31 meta = { 32 description = "MQTT Proxy allows MQTT clients to send messages to other messaging systems"; 33 homepage = "https://github.com/grepplabs/mqtt-proxy"; 34 #license = lib.licenses.cc-by-nc-nd-40; 35 maintainers = [ lib.maintainers.sikmir ]; 36 mainProgram = "mqtt-proxy"; 37 }; 38 })
