Merge pull request #72269 from worldofpeace/gtk-no-gtk-doc-macos

gtk3: only build docs on linux
This commit is contained in:
worldofpeace 2019-10-29 22:33:55 +00:00 committed by GitHub
commit 374e6e95c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [