mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge pull request #194375 from sikmir/paho-mqtt
This commit is contained in:
commit
c0adb75f1f
33
pkgs/development/libraries/paho-mqtt-c/default.nix
Normal file
33
pkgs/development/libraries/paho-mqtt-c/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ 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=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/MQTTVersion.c \
|
||||
--replace "namebuf[60]" "namebuf[120]" \
|
||||
--replace "lib%s" "$out/lib/lib%s"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
cmakeFlags = [ "-DPAHO_WITH_SSL=TRUE" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Eclipse Paho MQTT C Client Library";
|
||||
homepage = "https://www.eclipse.org/paho/";
|
||||
license = licenses.epl20;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
25
pkgs/development/libraries/paho-mqtt-cpp/default.nix
Normal file
25
pkgs/development/libraries/paho-mqtt-cpp/default.nix
Normal file
@ -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";
|
||||
homepage = "https://www.eclipse.org/paho/";
|
||||
license = licenses.epl10;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -10038,6 +10038,10 @@ with pkgs;
|
||||
|
||||
pagmo2 = callPackage ../development/libraries/pagmo2 { };
|
||||
|
||||
paho-mqtt-c = callPackage ../development/libraries/paho-mqtt-c { };
|
||||
|
||||
paho-mqtt-cpp = callPackage ../development/libraries/paho-mqtt-cpp { };
|
||||
|
||||
pakcs = callPackage ../development/compilers/pakcs {
|
||||
# Doesn't compile with GHC 9.0 due to whitespace syntax changes
|
||||
# see also https://github.com/NixOS/nixpkgs/issues/166108
|
||||
|
Loading…
Reference in New Issue
Block a user