diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-07-03 03:13:00 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-07-15 17:44:07 +0000 |
commit | 5b4842b8b8e6707eec7474d6c529460e36710988 (patch) | |
tree | 191aab70daea6efca3104fabec12e272ed0b028f /nixpkgs/pkgs/development/libraries | |
parent | 3363122c90e65b4d3030d488252484220d18667b (diff) | |
download | nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar.gz nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar.bz2 nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar.lz nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar.xz nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.tar.zst nixlib-5b4842b8b8e6707eec7474d6c529460e36710988.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 'nixpkgs/pkgs/development/libraries')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/wayland/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/libraries/wayland/default.nix b/nixpkgs/pkgs/development/libraries/wayland/default.nix index 402177b899c3..1821d7a72374 100644 --- a/nixpkgs/pkgs/development/libraries/wayland/default.nix +++ b/nixpkgs/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}" ]; |