mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
python310Packages.pygobject3: fix cross
This commit is contained in:
parent
31f99a8a28
commit
c5d7fc0b3c
@ -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;
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user