From b607f1cd16102d62e780a500837b38822588f03b Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 29 Oct 2019 16:15:28 -0400 Subject: [PATCH] gtk3: only build docs on linux --- pkgs/development/libraries/gtk/3.x.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/gtk/3.x.nix b/pkgs/development/libraries/gtk/3.x.nix index c88e193740d0..7f09b52d51ff 100644 --- a/pkgs/development/libraries/gtk/3.x.nix +++ b/pkgs/development/libraries/gtk/3.x.nix @@ -36,6 +36,7 @@ , wayland-protocols , xineramaSupport ? stdenv.isLinux , cupsSupport ? stdenv.isLinux +, withGtkDoc ? stdenv.isLinux , cups ? null , AppKit , Cocoa @@ -49,7 +50,7 @@ stdenv.mkDerivation rec { pname = "gtk+3"; version = "3.24.12"; - outputs = [ "out" "dev" "devdoc" ]; + outputs = [ "out" "dev" ] ++ optional withGtkDoc "devdoc"; outputBin = "dev"; setupHooks = [ @@ -81,7 +82,7 @@ stdenv.mkDerivation rec { separateDebugInfo = stdenv.isLinux; mesonFlags = [ - "-Dgtk_doc=true" + "-Dgtk_doc=${boolToString withGtkDoc}" "-Dtests=false" ]; @@ -109,10 +110,7 @@ stdenv.mkDerivation rec { ''; nativeBuildInputs = [ - docbook_xml_dtd_43 - docbook_xsl gettext - gtk-doc gobject-introspection makeWrapper meson @@ -121,6 +119,10 @@ stdenv.mkDerivation rec { python3 sassc setupHooks + ] ++ optionals withGtkDoc [ + docbook_xml_dtd_43 + docbook_xsl + gtk-doc ]; buildInputs = [