flutter.buildFlutterApplication: Fix Exec format error

This does NOT fix the cross compilation of flutter applications, it only
fixes one issue which should allow for better error messages
This commit is contained in:
Artturin
2025-08-17 22:07:10 +03:00
parent a21deff818
commit 52b0a7f2b4
@@ -9,8 +9,7 @@
glib,
flutter,
pkg-config,
jq,
yq,
buildPackages,
}:
# absolutely no mac support for now
@@ -112,9 +111,9 @@ let
extraPackageConfigSetup = ''
# https://github.com/flutter/flutter/blob/3.13.8/packages/flutter_tools/lib/src/dart/pub.dart#L755
if [ "$('${yq}/bin/yq' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
if [ "$('${lib.getExe buildPackages.yq}' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
export TEMP_PACKAGES=$(mktemp)
'${jq}/bin/jq' '.packages |= . + [{
'${lib.getExe buildPackages.jq}' '.packages |= . + [{
name: "flutter_gen",
rootUri: "flutter_gen",
languageVersion: "2.12",