libmtp: improve cross-compilation support

It still doesn't build, but it gets further now.
Also added configurePlatforms explicitly, not strictly needed for cross,
but might help catch issues with cross earlier in some cases.
This commit is contained in:
Rick van Schijndel 2022-11-08 20:47:31 +01:00
parent 83be3a653f
commit 6a5aab566f

View File

@ -35,10 +35,12 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ libusb1 ];
preConfigure = "./autogen.sh";
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
configureFlags = [ "--with-udev=${placeholder "out"}/lib/udev" ];
configurePlatforms = [ "build" "host" ];
enableParallelBuilding = true;
meta = with lib; {