mpd: Build and install docs and split outputs

This commit is contained in:
Doron Behar 2020-05-16 17:08:25 +03:00
parent 69aa4f3792
commit 08bdd8bc43

View File

@ -19,6 +19,9 @@
# Tag support # Tag support
, libid3tag , libid3tag
, nixosTests , nixosTests
# For documentation
, doxygen
, python3Packages # for sphinx-build
# For tests # For tests
, gtest , gtest
, fetchpatch # used to fetch an upstream patch fixing a failing test , fetchpatch # used to fetch an upstream patch fixing a failing test
@ -146,6 +149,8 @@ let
meson meson
ninja ninja
pkg-config pkg-config
python3Packages.sphinx
doxygen
]; ];
# Otherwise, the meson log says: # Otherwise, the meson log says:
@ -159,7 +164,12 @@ let
mesonAutoFeatures = "disabled"; mesonAutoFeatures = "disabled";
outputs = [ "out" "doc" "man" ];
mesonFlags = [ mesonFlags = [
# Documentation is enabled unconditionally but it's not installed
# unconditionally thanks to the outputs being split
"-Ddocumentation=true"
"-Dtest=true" "-Dtest=true"
] ]
++ map (x: "-D${x}=enabled") features_ ++ map (x: "-D${x}=enabled") features_