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.22.0"; 14 15 src = fetchFromGitHub { 16 owner = "rmqtt"; 17 repo = "rmqtt"; 18 tag = finalAttrs.version; 19 hash = "sha256-CLFEIhkZ/0mbSkjY2JH/eIKIogm/cwW6hbzTjFqLOOY="; 20 }; 21 22 cargoHash = "sha256-/TXU8JOcgaPHRGxHJ98B4RDO6+jXulJcQdE3uOg1t+8="; 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 })
