Merge pull request #276414 from linsui/dart

dart: fix fetchDartDeps
This commit is contained in:
Maciej Krüger 2023-12-25 10:21:21 +01:00 committed by GitHub
commit 2e3a121acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
'';