python310Packages.pygobject3: fix cross

This commit is contained in:
Artturin 2022-07-07 21:31:10 +03:00
parent 31f99a8a28
commit c5d7fc0b3c
2 changed files with 16 additions and 2 deletions

View File

@ -12,6 +12,7 @@
, ninja
, isPy3k
, gnome
, python
}:
buildPythonPackage rec {
@ -29,6 +30,10 @@ buildPythonPackage rec {
sha256 = "HzS192JN415E61p+tCg1MoW9AwBNVRMaX39/qbkPPMk=";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
meson
@ -37,8 +42,9 @@ buildPythonPackage rec {
];
buildInputs = [
glib
# # .so files link to these
gobject-introspection
glib
] ++ lib.optionals stdenv.isDarwin [
ncurses
];
@ -48,6 +54,13 @@ buildPythonPackage rec {
cairo
];
mesonFlags = [
# This is only used for figuring out what version of Python is in
# use, and related stuff like figuring out what the install prefix
# should be, but it does need to be able to execute Python code.
"-Dpython=${python.pythonForBuild.interpreter}"
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;

View File

@ -7472,7 +7472,8 @@ in {
pygobject2 = callPackage ../development/python-modules/pygobject { };
pygobject3 = callPackage ../development/python-modules/pygobject/3.nix {
inherit (pkgs) meson;
# inherit (pkgs) meson won't work because it won't be spliced
inherit (pkgs.buildPackages) meson;
};
pygogo = callPackage ../development/python-modules/pygogo { };