summary refs log tree commit diff
path: root/pkgs/development/libraries/wayland
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-07-03 03:13:00 +0000
committerAlyssa Ross <hi@alyssa.is>2020-07-04 12:22:59 +0000
commitee5f7058a488b2b70dbdc092fc07fa30b1f98a40 (patch)
tree87ae2d5d6559bf1636390b65219da90125efe38a /pkgs/development/libraries/wayland
parent10ad3f66f56b651505511c348c6afe890dd9a422 (diff)
downloadnixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar.gz
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar.bz2
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar.lz
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar.xz
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.tar.zst
nixpkgs-ee5f7058a488b2b70dbdc092fc07fa30b1f98a40.zip
wayland: documentation outputs
Build the documentation by default, but install it to seperate outputs
so it doesn't have to be downloaded.  Documentation is still disabled
when cross-compiling, because that is currently broken:
wayland -> graphviz -> libdevil -> openexr -> ilmbase (broken)
Diffstat (limited to 'pkgs/development/libraries/wayland')
-rw-r--r--pkgs/development/libraries/wayland/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/wayland/default.nix b/pkgs/development/libraries/wayland/default.nix
index 402177b899c..1821d7a7237 100644
--- a/pkgs/development/libraries/wayland/default.nix
+++ b/pkgs/development/libraries/wayland/default.nix
@@ -1,7 +1,8 @@
 { lib, stdenv, fetchurl, meson, pkgconfig, ninja
 , libffi, libxml2, wayland
 , expat ? null # Build wayland-scanner (currently cannot be disabled as of 1.7.0)
-, withDocumentation ? false, graphviz-nox, doxygen, libxslt, xmlto, python3
+, withDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform
+, graphviz-nox, doxygen, libxslt, xmlto, python3
 , docbook_xsl, docbook_xml_dtd_45, docbook_xml_dtd_42
 }:
 
@@ -19,6 +20,7 @@ in stdenv.mkDerivation rec {
     sha256 = "0k995rn96xkplrapz5k648j651wc43kq817xk1x8280h16gsfxa6";
   };
 
+  outputs = [ "out" ] ++ lib.optionals withDocumentation [ "doc" "man" ];
   separateDebugInfo = true;
 
   mesonFlags = [ "-Ddocumentation=${lib.boolToString withDocumentation}" ];