default.nix (685B)
1 { lib, stdenv, rustPlatform, fetchFromGitHub, cmake, Security }: 2 3 rustPlatform.buildRustPackage rec { 4 pname = "rumqtt"; 5 version = "0.18.0"; 6 7 src = fetchFromGitHub { 8 owner = "bytebeamio"; 9 repo = "rumqtt"; 10 rev = "rumqttd-${version}"; 11 hash = "sha256-4a0gk8yAOon3HwgfYX8fWQ2+fixuF8W+M8Flrv31aqQ="; 12 }; 13 14 cargoHash = "sha256-XnTiN07n9bKOT3O317P/xlEmzVhH9OB0r/TgwvOY+Q4="; 15 16 nativeBuildInputs = [ cmake ]; 17 18 buildInputs = lib.optional stdenv.isDarwin Security; 19 20 meta = with lib; { 21 description = "The MQTT ecosystem in rust"; 22 homepage = "https://github.com/bytebeamio/rumqtt"; 23 license = licenses.asl20; 24 maintainers = [ maintainers.sikmir ]; 25 }; 26 }