Unverified Commit 0ac7840a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #256051 from datafoo/mosquitto

mosquitto: 2.0.17 -> 2.0.18
parents 2fb4d5ad facbafb0
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
, fetchpatch
, nixosTests
}:

let
@@ -28,13 +29,13 @@ let
in
stdenv.mkDerivation rec {
  pname = "mosquitto";
  version = "2.0.17";
  version = "2.0.18";

  src = fetchFromGitHub {
    owner = "eclipse";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-hOnZ6oHLvunZL6MrCmR5GkROQNww34QQ3m4gYDaSpb4=";
    sha256 = "sha256-Vs0blV2IhnlEAm0WtOartz+0vLesJfp78FNJCivRxHk=";
  };

  patches = lib.optionals stdenv.isDarwin [
@@ -76,6 +77,10 @@ stdenv.mkDerivation rec {
    "-DWITH_WEBSOCKETS=ON"
  ] ++ lib.optional withSystemd "-DWITH_SYSTEMD=ON";

  passthru.tests = {
    inherit (nixosTests) mosquitto;
  };

  meta = with lib; {
    description = "An open source MQTT v3.1/3.1.1/5.0 broker";
    homepage = "https://mosquitto.org/";