mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 22:54:17 +00:00
dart.fvp: use FindMDK.cmake
This commit is contained in:
parent
0afd5fbf40
commit
f6a5be36f3
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user