Skip to content

Commit

Permalink
Merge pull request #276414 from linsui/dart
Browse files Browse the repository at this point in the history
dart: fix fetchDartDeps
  • Loading branch information
mkg20001 authored Dec 25, 2023
2 parents 939b698 + 676ef2b commit 2e3a121
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/build-support/dart/fetch-dart-deps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit 2e3a121

Please sign in to comment.