nanomq: init at 0.13.0

This commit is contained in:
Nikolay Korotkiy 2022-10-27 13:50:32 +03:00
parent ea8c2698be
commit 40b0879469
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib, stdenv, fetchFromGitHub, cmake, ninja, mbedtls, sqlite }:
stdenv.mkDerivation rec {
pname = "nanomq";
version = "0.13.0";
src = fetchFromGitHub {
owner = "emqx";
repo = "nanomq";
rev = version;
hash = "sha256-fxV/X34yohh/bxOsnoVngBKiwqABQDthLgZxvomC0+g=";
fetchSubmodules = true;
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "DESTINATION /etc" "DESTINATION $out/etc"
'';
nativeBuildInputs = [ cmake ninja ];
buildInputs = [ mbedtls sqlite ];
cmakeFlags = [
"-DNNG_ENABLE_TLS=ON"
"-DNNG_ENABLE_SQLITE=ON"
];
meta = with lib; {
description = "An ultra-lightweight and blazing-fast MQTT broker for IoT edge";
homepage = "https://nanomq.io/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}

View File

@ -21167,6 +21167,8 @@ with pkgs;
mosquitto = callPackage ../servers/mqtt/mosquitto { };
nanomq = callPackage ../servers/mqtt/nanomq { };
mps = callPackage ../development/libraries/mps { stdenv = gcc10StdenvCompat; };
libmpeg2 = callPackage ../development/libraries/libmpeg2 { };