package.nix (697B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 protobuf, 8 openssl, 9 }: 10 11 rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "rmqtt"; 13 version = "0.19.0"; 14 15 src = fetchFromGitHub { 16 owner = "rmqtt"; 17 repo = "rmqtt"; 18 tag = finalAttrs.version; 19 hash = "sha256-7lJs1HtQCtS4MtNim9Aho7zc9H0goBGrCl91q0O1Zq4="; 20 }; 21 22 cargoHash = "sha256-htn+baGbvg920bYq6cCqJ/7ORwRNebSgFIJaRSJjZUQ="; 23 24 nativeBuildInputs = [ 25 cmake 26 pkg-config 27 protobuf 28 ]; 29 30 buildInputs = [ openssl ]; 31 32 meta = { 33 description = "MQTT Broker"; 34 homepage = "https://github.com/rmqtt/rmqtt"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 }; 38 })
