From db1b253b3abf3c5a50492445883bdf0d5da143a7 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 25 Apr 2023 14:52:09 +0200 Subject: [PATCH] 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. --- pkgs/servers/mqtt/mosquitto/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/servers/mqtt/mosquitto/default.nix b/pkgs/servers/mqtt/mosquitto/default.nix index f241f48ac52e..e4f804875bd6 100644 --- a/pkgs/servers/mqtt/mosquitto/default.nix +++ b/pkgs/servers/mqtt/mosquitto/default.nix @@ -53,6 +53,8 @@ stdenv.mkDerivation rec { popd ''; + outputs = [ "out" "dev" "lib" ]; + nativeBuildInputs = [ cmake docbook_xsl libxslt ]; buildInputs = [