nanomq: 0.15.1 → 0.15.5
This commit is contained in:
parent
b9b35e4aa0
commit
b681d0642d
|
@ -1,32 +1,48 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, ninja, mbedtls, sqlite }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, ninja, pkg-config
|
||||||
|
, cyclonedds, libmysqlclient, mariadb, mbedtls, sqlite, zeromq
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "nanomq";
|
pname = "nanomq";
|
||||||
version = "0.15.1";
|
version = "0.15.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "emqx";
|
owner = "emqx";
|
||||||
repo = "nanomq";
|
repo = "nanomq";
|
||||||
rev = finalAttrs.version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-h4TCorZfg9Sin4CZPRifUkqeg4F2V1DluolerSeREs4=";
|
hash = "sha256-eIwUsYPpRZMl1oCuuZeOj0SCBHDaJdmdWdoI4yuqxrg=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix the conflict on function naming in ddsproxy
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/emqx/nanomq/commit/20f436a3b9d45f9809d7c7f0714905c657354631.patch";
|
||||||
|
hash = "sha256-ISMlf9QW73oogMTlifi/r08uSxBpzRYvBSJBB1hn2xY=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
--replace "DESTINATION /etc" "DESTINATION $out/etc"
|
--replace "DESTINATION /etc" "DESTINATION $out/etc"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja ];
|
nativeBuildInputs = [ cmake ninja pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ mbedtls sqlite ];
|
buildInputs = [ cyclonedds libmysqlclient mariadb mbedtls sqlite zeromq ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
"-DBUILD_BENCH=ON"
|
||||||
|
"-DBUILD_DDS_PROXY=ON"
|
||||||
"-DBUILD_NANOMQ_CLI=ON"
|
"-DBUILD_NANOMQ_CLI=ON"
|
||||||
"-DNNG_ENABLE_TLS=ON"
|
"-DBUILD_ZMQ_GATEWAY=ON"
|
||||||
|
"-DENABLE_RULE_ENGINE=ON"
|
||||||
"-DNNG_ENABLE_SQLITE=ON"
|
"-DNNG_ENABLE_SQLITE=ON"
|
||||||
|
"-DNNG_ENABLE_TLS=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-return-type";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An ultra-lightweight and blazing-fast MQTT broker for IoT edge";
|
description = "An ultra-lightweight and blazing-fast MQTT broker for IoT edge";
|
||||||
homepage = "https://nanomq.io/";
|
homepage = "https://nanomq.io/";
|
||||||
|
|
Loading…
Reference in a new issue