mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
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: {
|
||||
pname = "nanomq";
|
||||
version = "0.15.1";
|
||||
version = "0.15.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emqx";
|
||||
repo = "nanomq";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-h4TCorZfg9Sin4CZPRifUkqeg4F2V1DluolerSeREs4=";
|
||||
hash = "sha256-eIwUsYPpRZMl1oCuuZeOj0SCBHDaJdmdWdoI4yuqxrg=";
|
||||
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 = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--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 = [
|
||||
"-DBUILD_BENCH=ON"
|
||||
"-DBUILD_DDS_PROXY=ON"
|
||||
"-DBUILD_NANOMQ_CLI=ON"
|
||||
"-DNNG_ENABLE_TLS=ON"
|
||||
"-DBUILD_ZMQ_GATEWAY=ON"
|
||||
"-DENABLE_RULE_ENGINE=ON"
|
||||
"-DNNG_ENABLE_SQLITE=ON"
|
||||
"-DNNG_ENABLE_TLS=ON"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-return-type";
|
||||
|
||||
meta = with lib; {
|
||||
description = "An ultra-lightweight and blazing-fast MQTT broker for IoT edge";
|
||||
homepage = "https://nanomq.io/";
|
||||
|
Loading…
Reference in New Issue
Block a user