libgweather: disable introspection for cross
The gobject-introspection setup hook exports GI_TYPELIB_PATH, which breaks pygobject by trying to make it load cross-compiled glib. Since the script that uses pygobject is mandatory, but the introspection feature itself is not, disable the latter.
This commit is contained in:
parent
a49eb1726c
commit
63fcbb8bf7
|
@ -16,13 +16,14 @@
|
||||||
, geocode-glib_2
|
, geocode-glib_2
|
||||||
, vala
|
, vala
|
||||||
, gnome
|
, gnome
|
||||||
|
, withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libgweather";
|
pname = "libgweather";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
|
||||||
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";
|
||||||
|
@ -45,10 +46,12 @@ stdenv.mkDerivation rec {
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
gettext
|
gettext
|
||||||
vala
|
glib
|
||||||
|
(python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ]))
|
||||||
|
] ++ lib.optionals withIntrospection [
|
||||||
gi-docgen
|
gi-docgen
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
(python3.pythonForBuild.withPackages (ps: [ ps.pygobject3 ]))
|
vala
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -61,8 +64,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
|
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
|
||||||
"-Denable_vala=true"
|
(lib.mesonBool "introspection" withIntrospection)
|
||||||
"-Dgtk_doc=true"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
Loading…
Reference in a new issue