···9292 buildInputs = [
9393 libelf setupHook pcre
9494 bash gnum4 # install glib-gettextize and m4 macros for other apps to use
9595- gtk-doc
9695 ] ++ optionals stdenv.isLinux [
9796 libselinux
9897 util-linuxMinimal # for libmount
9998 ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
10099 AppKit Carbon Cocoa CoreFoundation CoreServices Foundation
101101- ]);
100100+ ]) ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
101101+ # Note: this needs to be both in buildInputs and nativeBuildInputs. The
102102+ # Meson gtkdoc module uses find_program to look it up (-> build dep), but
103103+ # glib's own Meson configuration uses the host pkg-config to find its
104104+ # version (-> host dep). We could technically go and fix this in glib, add
105105+ # pkg-config to depsBuildBuild, but this would be a futile exercise since
106106+ # Meson's gtkdoc integration does not support cross compilation[1] anyway
107107+ # and this derivation disables the docs build when cross compiling.
108108+ #
109109+ # [1] https://github.com/mesonbuild/meson/issues/2003
110110+ gtk-doc
111111+ ];
102112103113 strictDeps = true;
104114