summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2023-04-25 14:52:09 +0200
committerRobert Helgesson <robert@rycee.net>2023-05-17 14:09:13 +0200
commitdb1b253b3abf3c5a50492445883bdf0d5da143a7 (patch)
tree85ed49e8589035a973087e2f65e95971c8238a45
parent2b046918906f63555ec5e400e7d09f59163d2ba6 (diff)
downloadnixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar.gz
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar.bz2
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar.lz
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar.xz
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.tar.zst
nixpkgs-db1b253b3abf3c5a50492445883bdf0d5da143a7.zip
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.
-rw-r--r--pkgs/servers/mqtt/mosquitto/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/servers/mqtt/mosquitto/default.nix b/pkgs/servers/mqtt/mosquitto/default.nix
index f241f48ac52..e4f804875bd 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 = [