perlPackages.ExtUtilsPkgConfig: fix cross-compiling

This commit is contained in:
Artturin 2021-11-04 16:27:24 +02:00
parent 75fd86fb25
commit 04e17c10b8

View File

@ -8032,6 +8032,11 @@ let
};
nativeBuildInputs = [ buildPackages.pkg-config ];
propagatedBuildInputs = [ pkgs.pkg-config ];
postPatch = ''
# no pkg-config binary when cross-compiling so the check fails
substituteInPlace Makefile.PL \
--replace "pkg-config" "$PKG_CONFIG"
'';
doCheck = false; # expects test_glib-2.0.pc in PKG_CONFIG_PATH
meta = {
homepage = "http://gtk2-perl.sourceforge.net";