dart: fix fetchDartDeps

This commit is contained in:
linsui 2023-12-24 15:20:27 +08:00
parent 8735a9573d
commit 676ef2b4b2

View File

@ -178,7 +178,11 @@ let
buildPhase = ''
runHook preBuild
dart pub deps --json | jq .packages > $out
if [ -e ${dart}/bin/flutter ]; then
flutter pub deps --json | jq .packages > $out
else
dart pub deps --json | jq .packages > $out
fi
runHook postBuild
'';