dart.fvp: use FindMDK.cmake

This commit is contained in:
aucub 2024-12-09 05:06:11 +08:00
parent 0afd5fbf40
commit f6a5be36f3

View File

@ -10,11 +10,17 @@ stdenv.mkDerivation rec {
inherit version src;
inherit (src) passthru;
postPatch = ''
sed -i 's|.*libc++.so.1.*|${mdk-sdk}/lib/libc++.so.1|' ./linux/CMakeLists.txt
substituteInPlace ./linux/CMakeLists.txt \
--replace-fail "fvp_setup_deps()" "include(${mdk-sdk}/lib/cmake/FindMDK.cmake)"
'';
installPhase = ''
runHook preInstall
mkdir $out
tar -xf ${mdk-sdk.src} -C ./linux
cp -r ./* $out/
cp -r . $out
runHook postInstall
'';
}