mosquitto: use multiple outputs

Most importantly, separate the library from the executables. When the
library is used as a standalone MQTT client library, then we don't
want to pull in, e.g., the broker daemon.

Conveniently, the library output does not have a runtime dependency on
systemd so it becomes unnecessary to use `withSystemd = false` to keep
the closure size down when only wanting to use the library.
This commit is contained in:
Robert Helgesson 2023-04-25 14:52:09 +02:00
parent 2b04691890
commit db1b253b3a
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -53,6 +53,8 @@ stdenv.mkDerivation rec {
popd
'';
outputs = [ "out" "dev" "lib" ];
nativeBuildInputs = [ cmake docbook_xsl libxslt ];
buildInputs = [