From 08bdd8bc434ea0bd2c6eb4fb1a3a74870d7307c5 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 16 May 2020 17:08:25 +0300 Subject: [PATCH] mpd: Build and install docs and split outputs --- pkgs/servers/mpd/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index bd28a7db383..44118277a28 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -19,6 +19,9 @@ # Tag support , libid3tag , nixosTests +# For documentation +, doxygen +, python3Packages # for sphinx-build # For tests , gtest , fetchpatch # used to fetch an upstream patch fixing a failing test @@ -146,6 +149,8 @@ let meson ninja pkg-config + python3Packages.sphinx + doxygen ]; # Otherwise, the meson log says: @@ -159,7 +164,12 @@ let mesonAutoFeatures = "disabled"; + outputs = [ "out" "doc" "man" ]; + mesonFlags = [ + # Documentation is enabled unconditionally but it's not installed + # unconditionally thanks to the outputs being split + "-Ddocumentation=true" "-Dtest=true" ] ++ map (x: "-D${x}=enabled") features_