perlPackages.ExtUtilsPkgConfig: fix pkg-config use for cross (#397047)

authored by Colin and committed by GitHub b6d56993 5fa3af9c

+8 -1
+8 -1
pkgs/top-level/perl-packages.nix
··· 12667 12667 hash = "sha256-u+rO2ZXX2NEM/FGjpaZtpBzrK8BP7cq1DhDmMA6AHG4="; 12668 12668 }; 12669 12669 nativeBuildInputs = [ buildPackages.pkg-config ]; 12670 - propagatedBuildInputs = [ pkgs.pkg-config ]; 12670 + propagatedNativeBuildInputs = [ pkgs.pkg-config ]; 12671 12671 postPatch = '' 12672 12672 # no pkg-config binary when cross-compiling so the check fails 12673 12673 substituteInPlace Makefile.PL \ 12674 12674 --replace "pkg-config" "$PKG_CONFIG" 12675 + # use correctly prefixed pkg-config binary 12676 + substituteInPlace lib/ExtUtils/PkgConfig.pm \ 12677 + --replace-fail '`pkg-config' '`${stdenv.cc.targetPrefix}pkg-config' \ 12678 + --replace-fail '"pkg-config' '"${stdenv.cc.targetPrefix}pkg-config' \ 12679 + --replace-fail '/pkg-config' '/${stdenv.cc.targetPrefix}pkg-config' 12675 12680 ''; 12676 12681 doCheck = false; # expects test_glib-2.0.pc in PKG_CONFIG_PATH 12677 12682 meta = { 12678 12683 description = "Simplistic interface to pkg-config"; 12684 + homepage = "https://gitlab.gnome.org/GNOME/perl-extutils-pkgconfig"; 12679 12685 license = with lib.licenses; [ lgpl21Plus ]; 12686 + maintainers = [ lib.maintainers.fliegendewurst ]; 12680 12687 }; 12681 12688 }; 12682 12689