diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-10-27 13:50:32 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-11-06 13:16:19 +0300 |
commit | 40b0879469f32f365b943f20b7b452c7c3016fe9 (patch) | |
tree | 3fe10791e8a9f6b6f25dceee3302160bf335dcc2 /pkgs/servers/mqtt | |
parent | ea8c2698be87a961ef37242425e8dd9c0423ff91 (diff) | |
download | nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar.gz nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar.bz2 nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar.lz nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar.xz nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.tar.zst nixpkgs-40b0879469f32f365b943f20b7b452c7c3016fe9.zip |
nanomq: init at 0.13.0
Diffstat (limited to 'pkgs/servers/mqtt')
-rw-r--r-- | pkgs/servers/mqtt/nanomq/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/servers/mqtt/nanomq/default.nix b/pkgs/servers/mqtt/nanomq/default.nix new file mode 100644 index 00000000000..3d0cbcb37e6 --- /dev/null +++ b/pkgs/servers/mqtt/nanomq/default.nix @@ -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; + }; +} |