Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
944 B
Nix
44 lines
944 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
openssl,
|
|
paho-mqtt-c,
|
|
enableStatic ? stdenv.hostPlatform.isStatic,
|
|
enableShared ? !stdenv.hostPlatform.isStatic,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "paho.mqtt.cpp";
|
|
version = "1.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eclipse";
|
|
repo = "paho.mqtt.cpp";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-vwfWcJqAWY4Em4MxZVcvOi6pzXAYYlOrKh6peMtjcXo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
paho-mqtt-c
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "PAHO_WITH_SSL" true)
|
|
(lib.cmakeBool "PAHO_BUILD_STATIC" enableStatic)
|
|
(lib.cmakeBool "PAHO_BUILD_SHARED" enableShared)
|
|
];
|
|
|
|
meta = {
|
|
description = "Eclipse Paho MQTT C++ Client Library";
|
|
homepage = "https://www.eclipse.org/paho/";
|
|
license = lib.licenses.epl10;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|