libpeas2: Fix Python loader

Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
This commit is contained in:
Federico Damián Schonborn 2023-12-09 01:11:31 -03:00
parent 4422e611fe
commit a474fb8826
No known key found for this signature in database
GPG Key ID: F0418D7648392153

View File

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchurl
, substituteAll
, pkg-config
, gi-docgen
, gobject-introspection
@ -25,6 +26,16 @@ stdenv.mkDerivation rec {
hash = "sha256-ndwdUfOGY9pN9SFjBRt7LOo6JCz67p9afhQPB4TIqnc=";
};
patches = [
# Make PyGObjects gi library available.
(substituteAll {
src = ./fix-paths.patch;
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
python3.pkgs.pygobject3
];
})
];
depsBuildBuild = [
pkg-config
];