mg: fix cross-compilation

This commit is contained in:
Nikolay Korotkiy 2022-04-20 14:21:08 +03:00
parent eed6535791
commit da727b72c9
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-qnb0yB/NNJV257dsLmP84brajoRG03U+Ja1ACYbBvbE=";
};
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace configure --replace "./conftest" "echo"
'';
enableParallelBuilding = true;
makeFlags = [ "PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config" ];