nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 8be545b98175bd3e53c6109fea40f0f51eaf9207
parent 51e058523e20de651680d753d6177fec94e6ec47
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue,  4 Oct 2022 11:06:44 +0300

Add paho-mqtt-c,paho-mqtt-cpp

Diffstat:
Mpkgs/default.nix | 2++
Apkgs/misc/paho-mqtt-c/default.nix | 27+++++++++++++++++++++++++++
Apkgs/misc/paho-mqtt-cpp/default.nix | 25+++++++++++++++++++++++++
3 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -323,6 +323,8 @@ lib.makeScope newScope ( nanodns = callPackage ./misc/nanodns { }; nmtree = callPackage ./misc/nmtree { }; objlab = callPackage ./misc/objlab { }; + paho-mqtt-c = callPackage ./misc/paho-mqtt-c { }; + paho-mqtt-cpp = callPackage ./misc/paho-mqtt-cpp { }; playonmac = callPackage ./misc/playonmac { }; pnoise = callPackage ./misc/pnoise { }; ptunnel = callPackage ./misc/ptunnel { }; diff --git a/pkgs/misc/paho-mqtt-c/default.nix b/pkgs/misc/paho-mqtt-c/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, cmake, openssl }: + +stdenv.mkDerivation rec { + pname = "paho.mqtt.c"; + version = "1.3.11"; + + src = fetchFromGitHub { + owner = "eclipse"; + repo = "paho.mqtt.c"; + rev = "v${version}"; + hash = "sha256-TGCWA9tOOx0rCb/XQWqLFbXb9gOyGS8u6o9fvSRS6xI="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ openssl ]; + + cmakeFlags = [ "-DPAHO_WITH_SSL=TRUE" ]; + + meta = with lib; { + description = "Eclipse Paho MQTT C Client Library"; + inherit (src.meta) homepage; + license = licenses.epl20; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/misc/paho-mqtt-cpp/default.nix b/pkgs/misc/paho-mqtt-cpp/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, cmake, openssl, paho-mqtt-c }: + +stdenv.mkDerivation rec { + pname = "paho.mqtt.cpp"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "eclipse"; + repo = "paho.mqtt.cpp"; + rev = "v${version}"; + hash = "sha256-tcq0a4X5dKE4rnczRMAVe3Wt43YzUKbxsv9Sk+q+IB8="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ openssl paho-mqtt-c ]; + + meta = with lib; { + description = "Eclipse Paho MQTT C++ Client Library"; + inherit (src.meta) homepage; + license = licenses.epl10; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}