package.nix (820B)
1 { 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 pkg-config, 6 mosquitto, 7 sqlite, 8 }: 9 10 buildGoModule (finalAttrs: { 11 pname = "go-mosquitto"; 12 version = "1.0.8"; 13 14 __structuredAttrs = true; 15 16 src = fetchFromGitHub { 17 owner = "mutablelogic"; 18 repo = "go-mosquitto"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-JCsIUbQuMkJrzOI3naUZkEJXYPUHAzIucSj/bbhDFFs="; 21 }; 22 23 vendorHash = "sha256-/1xaR3jFqKgyFMBsHmwgWrE7kG5MYX86uqyBmiQqPh4="; 24 25 subPackages = [ 26 "cmd/mqttpub" 27 "cmd/mqttsub" 28 ]; 29 30 nativeBuildInputs = [ pkg-config ]; 31 32 buildInputs = [ 33 mosquitto 34 sqlite 35 ]; 36 37 meta = { 38 description = "Golang Mosquitto MQTT Client Library"; 39 homepage = "https://github.com/mutablelogic/go-mosquitto"; 40 license = lib.licenses.asl20; 41 maintainers = [ lib.maintainers.sikmir ]; 42 }; 43 })
