default.nix (709B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 cmake, 6 }: 7 8 rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "rumqtt"; 10 version = "0.19.0"; 11 12 src = fetchFromGitHub { 13 owner = "bytebeamio"; 14 repo = "rumqtt"; 15 tag = "rumqttd-${finalAttrs.version}"; 16 hash = "sha256-3rDnJ1VsyGBDhjOq0Rd55WI1EbIo+17tcFZCoeJB3Kc="; 17 }; 18 19 cargoPatches = [ ./cargo-lock.patch ]; 20 cargoHash = "sha256-/OUSTfpjqTily2b2RNZEfmHdKHSQo7lQsGwqW08vPnc="; 21 22 nativeBuildInputs = [ cmake ]; 23 24 meta = { 25 description = "The MQTT ecosystem in rust"; 26 homepage = "https://github.com/bytebeamio/rumqtt"; 27 license = lib.licenses.asl20; 28 maintainers = [ lib.maintainers.sikmir ]; 29 mainProgram = "rumqttd"; 30 }; 31 })