1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

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