mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 02:33:15 +00:00
flutter.buildFlutterApplication: Don't assume jq and yq are available in extraPackageConfigSetup
This commit is contained in:
parent
53a3485bfc
commit
f057034d6a
@ -70,8 +70,8 @@
|
||||
|
||||
extraPackageConfigSetup = ''
|
||||
# https://github.com/flutter/flutter/blob/3.13.8/packages/flutter_tools/lib/src/dart/pub.dart#L755
|
||||
if [ "$(yq '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
||||
jq '.packages |= . + [{
|
||||
if [ "$('${yq}/bin/yq' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
||||
'${jq}/bin/jq' '.packages |= . + [{
|
||||
name: "flutter_gen",
|
||||
rootUri: "flutter_gen",
|
||||
languageVersion: "2.12",
|
||||
|
Loading…
Reference in New Issue
Block a user