libmediainfo: fix cross-compilation

This commit is contained in:
Yureka 2022-09-27 07:23:16 +02:00
parent ef395e396b
commit deb21566a0

View File

@ -12,7 +12,12 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib ];
propagatedBuildInputs = [ libzen ];
postPatch = "cd Project/GNU/Library";
sourceRoot = "MediaInfoLib/Project/GNU/Library";
postPatch = lib.optionalString (stdenv.cc.targetPrefix != "") ''
substituteInPlace configure.ac \
--replace "pkg-config " "${stdenv.cc.targetPrefix}pkg-config "
'';
configureFlags = [ "--enable-shared" ];