Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mosquitto: 1.5.5 -> 1.5.6
  • Loading branch information
peterhoeg committed Feb 9, 2019
1 parent ce8c243 commit 94899e3
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions pkgs/servers/mqtt/mosquitto/default.nix
@@ -1,30 +1,22 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake, docbook_xsl, libxslt
{ stdenv, fetchFromGitHub, fetchurl, cmake, docbook_xsl, libxslt
, openssl, libuuid, libwebsockets, c-ares, libuv }:

stdenv.mkDerivation rec {
name = "mosquitto-${version}";
version = "1.5.5";
version = "1.5.6";

src = fetchFromGitHub {
owner = "eclipse";
repo = "mosquitto";
rev = "v${version}";
sha256 = "1sfwmvrglfy5gqfk004kvbjldqr36dqz6xmppbgfhr47j5zs66xc";
src = fetchurl {
url = "https://mosquitto.org/embargo/78436548/${name}.tar.gz";
sha256 = "0h0sfph1azb3fxv70h38kw1fxahhvqagqmvd6wk00db8qqyc3gfm";
};

postPatch = ''
substituteInPlace man/manpage.xsl \
--replace /usr/share/xml/docbook/stylesheet/ ${docbook_xsl}/share/xml/
for f in {lib,lib/cpp,src}/CMakeLists.txt ; do
substituteInPlace $f --replace /sbin/ldconfig ldconfig
done
# the manpages are not generated when using cmake
pushd man
make
popd
'';
# TODO: switch back to this when normal releases are available at GH again
# src = fetchFromGitHub {
# owner = "eclipse";
# repo = "mosquitto";
# rev = "v${version}";
# sha256 = "1sfwmvrglfy5gqfk004kvbjldqr36dqz6xmppbgfhr47j5zs66xc";
# };

buildInputs = [ openssl libuuid libwebsockets c-ares libuv ];

Expand Down

0 comments on commit 94899e3

Please sign in to comment.