mosquitto: 2.0.10 -> 2.0.11
Fixes CVE-2021-34431. https://github.com/eclipse/mosquitto/blob/v2.0.11/ChangeLog.txt (cherry picked from commit ded0f0ede6c5ebda4eb88e8158a4115b2780a9fe)
This commit is contained in:
parent
3e09410da0
commit
24caf232b7
|
@ -12,19 +12,29 @@
|
||||||
, openssl
|
, openssl
|
||||||
, withSystemd ? stdenv.isLinux
|
, withSystemd ? stdenv.isLinux
|
||||||
, systemd
|
, systemd
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mosquitto";
|
pname = "mosquitto";
|
||||||
version = "2.0.10";
|
version = "2.0.11";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "eclipse";
|
owner = "eclipse";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "144vw7b9ja4lci4mplbxs048x9aixd9c3s7rg6wc1k31w099rb12";
|
sha256 = "1i0kkqhjxqahkhsl60s46zlywa87jakv7h4sr3fhi1v53vwpb9mg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = lib.optionals stdenv.isDarwin [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "revert-cmake-shared-to-module.patch"; # See https://github.com/eclipse/mosquitto/issues/2277
|
||||||
|
url = "https://github.com/eclipse/mosquitto/commit/e21eaeca37196439b3e89bb8fd2eb1903ef94845.patch";
|
||||||
|
sha256 = "14syi2c1rks8sl2aw09my276w45yq1iasvzkqcrqwy4drdqrf069";
|
||||||
|
revert = true;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
for f in html manpage ; do
|
for f in html manpage ; do
|
||||||
substituteInPlace man/$f.xsl \
|
substituteInPlace man/$f.xsl \
|
||||||
|
|
Loading…
Reference in New Issue