Merge pull request #117914 from Mindavi/cross/gtk-doc-json-glib
gtk-doc + json-glib: fix cross-compilation
This commit is contained in:
commit
38c8ae9bbe
|
@ -6,6 +6,7 @@
|
||||||
, ninja
|
, ninja
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, gettext
|
, gettext
|
||||||
|
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
, gobject-introspection
|
, gobject-introspection
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
, gtk-doc
|
, gtk-doc
|
||||||
|
@ -18,31 +19,45 @@ stdenv.mkDerivation rec {
|
||||||
pname = "json-glib";
|
pname = "json-glib";
|
||||||
version = "1.6.2";
|
version = "1.6.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" ]
|
||||||
|
++ lib.optional withIntrospection "devdoc";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3";
|
sha256 = "092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
depsBuildBuild = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
gettext
|
gettext
|
||||||
gobject-introspection
|
|
||||||
glib
|
glib
|
||||||
gtk-doc
|
|
||||||
docbook-xsl-nons
|
docbook-xsl-nons
|
||||||
docbook_xml_dtd_43
|
docbook_xml_dtd_43
|
||||||
] ++ lib.optional stdenv.hostPlatform.isDarwin [
|
] ++ lib.optional stdenv.hostPlatform.isDarwin [
|
||||||
fixDarwinDylibNames
|
fixDarwinDylibNames
|
||||||
|
] ++ lib.optionals withIntrospection [
|
||||||
|
gobject-introspection
|
||||||
|
gtk-doc
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
glib
|
glib
|
||||||
];
|
];
|
||||||
|
|
||||||
|
mesonFlags = lib.optionals (!withIntrospection) [
|
||||||
|
"-Dintrospection=disabled"
|
||||||
|
# doc gen uses introspection, doesn't work properly
|
||||||
|
"-Dgtk_doc=disabled"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|
|
@ -32,6 +32,13 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
passthru.respect_xml_catalog_files_var_patch
|
passthru.respect_xml_catalog_files_var_patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
depsBuildBuild = [
|
||||||
|
python3
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
gettext
|
gettext
|
||||||
|
|
Loading…
Reference in New Issue