Commit Graph

250 Commits

Author SHA1 Message Date
Tristan Ross
c51787c99c
flutter: Pass flutter_tools package_config.json to Dart runtime (#354174) 2024-12-03 21:16:17 -08:00
sodiboo
edbb4903fa flutterPackages-source.*.engine: don't remove gen 2024-11-27 21:06:37 +01:00
Tristan Ross
1bdff91755
flutter: revert remove usages of aliases {build,host,target}Platform
PR #350299 broke Flutter's update script with how it handled getting the
platform. Furthermore, the problem was made worse in the last update to
Flutter which had to work around that problem. We'll just revert it for
now and do a proper fix once we can figure out how to satify setting the
different platforms without causing any more problems.
2024-11-21 07:03:15 -08:00
Joshua Leivenzon
3688e311b4 flutter: Pass flutter_tools package_config.json to Dart runtime 2024-11-07 19:50:37 +11:00
github-actions[bot]
0ad7ce5327
Merge staging-next into staging 2024-10-29 00:14:56 +00:00
Tristan Ross
7608f645ba
flutter327: init; flutterPackages-source.v3_26: fix source; flutter324: 3.24.3 -> 3.24.4 (#351189) 2024-10-28 15:45:55 -07:00
github-actions[bot]
4e6b4b667b
Merge staging-next into staging 2024-10-26 00:14:30 +00:00
Tristan Ross
9c3c35d26b
buildFlutterApplication: prevent conflicting app directories (#345404) 2024-10-25 13:18:20 -07:00
Tristan Ross
30bb2e0a76
flutterPackages-source.v3_27: fix building 2024-10-25 10:51:22 -07:00
Tristan Ross
ca7877a49d
buildFlutterApplication: prevent conflicting app directories 2024-10-25 10:09:49 -07:00
Tristan Ross
1170180cfb
flutter324: 3.24.3 -> 3.24.4 2024-10-25 07:39:10 -07:00
Tristan Ross
8c64c8887f
flutterPackages-source.v3_26: fix source 2024-10-25 00:02:42 -07:00
Tristan Ross
5bdf46dfde
flutter327: init at 3.27.0-0.1.pre 2024-10-24 22:30:22 -07:00
piegames
c3d78ae8a5
treewide: More string indentation fixes (#350774) 2024-10-24 18:33:44 +02:00
piegames
ae207af82b treewide: More string indentation fixes
Follow-up on #350296 with the packages that cause big rebuilds and need
to go through staging.
2024-10-23 21:52:18 +02:00
Artturin
95c1043ff5 treewide: remove usages of aliases {build,host,target}Platform 2024-10-23 22:40:32 +03:00
Tristan Ross
9d5adb9e45
flutter326: init at 3.26.0-0.1pre 2024-10-07 11:04:31 -07:00
Tristan Ross
24acfbe80a
flutter323: remove 2024-10-06 09:05:08 -07:00
Tristan Ross
7a8ea953f4
flutter324: 3.24.1 -> 3.24.3 2024-10-06 09:05:08 -07:00
Tristan Ross
276a231441
flutter322: remove 2024-10-06 09:05:07 -07:00
Tristan Ross
426a41f3f0
flutter316: remove 2024-10-06 09:05:06 -07:00
Tristan Ross
f3d53d2f5a
flutter313: remove 2024-10-06 09:05:06 -07:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Maciej Krüger
9d0ac32117
flutter: fix iOS/macOS builds in nix-shell (#341470) 2024-09-23 14:29:04 +02:00
Maciej Krüger
962f168c1a
flutter: roll forward missed patches to v3.23 and v3.24 (#341133) 2024-09-14 15:59:56 +02:00
Philip Hayes
8ab57cea8a flutter: prevent built iOS/macOS apps from containing links to nix store 2024-09-12 16:02:37 -07:00
Philip Hayes
492e603ecd flutter: fix iOS build error
Without this patch, `xcode_backend.sh` gets confused by the flutter SDK
`symlinkJoin` and picks up the `dart` executable from `flutter-unwrapped`,
which manifests in the following error during an iOS/macOS build:

```
Error (Xcode): Target debug_unpack_ios failed: Error: Flutter failed to create a directory at "/<nix-store-path>-flutter-3.24.1-unwrapped/bin/cache/artifacts".
```
2024-09-12 14:03:47 -07:00
Anderson Torres
a0f3c9ac50 flutter: move build-support/flutter to flutter directory
Rationale:

With the advent of RFC 140, Nixpkgs becomes to promote self-contained package
directories and strongly discourages scattering along the old and deprecated
filesystem hierarchy.

Further, `build-support/flutter/*` is not referenced by any other expressions in
Nixpkgs besides flutter itself.

Further, concentrating all Flutter-related toolset below a same directory
hierarchy (arguably?) eases maintenance and future migrations.
2024-09-12 13:20:33 -03:00
Philip Hayes
f8891ec8de flutter: roll forward missed patches to v3.23 and v3.24 2024-09-10 18:37:37 -07:00
Tristan Ross
bf4565a7fc
flutterPackages-source.v3_24: disable test building when checks are disabled 2024-08-26 22:16:43 -07:00
Tristan Ross
a2b56cd6e0
flutterPackages.v3_24: fix patches 2024-08-22 18:27:57 -07:00
Tristan Ross
92c116b439
flutterPackages.v3_24: init 2024-08-22 18:27:53 -07:00
Tristan Ross
34863ee342
flutterPackages-source.v3_{13,16,19}.engine.release.src: fix output size 2024-08-17 07:55:41 -07:00
Tristan Ross
bc927415b4
Merge pull request #324717 from ExpidusOS/fix/flutter-engine
flutterPackages-source: disable old version sources, fix update hashes
2024-08-16 09:04:15 -07:00
Felix Buehler
df46afcb61 flutter: remove 'with lib;' 2024-08-16 16:09:03 +02:00
Tristan Ross
883f716047
flutterPackages-source: disable old version sources, fix update hashes 2024-08-15 19:41:02 -07:00
Tristan Ross
46a0243923
flutterPackages-source.v3_23.engine: fix building 2024-06-25 22:15:45 -07:00
Tristan Ross
2572634a6d
flutter.engine: fix swiftshader size 2024-06-25 22:05:30 -07:00
Tristan Ross
a037d6378f
flutter.engine: bring source size down to hydra limits 2024-06-19 01:05:33 -07:00
Tristan Ross
df1bef18e0
flutter: use engine dart when available 2024-06-17 23:02:37 -07:00
Tristan Ross
f20386e27d
flutter.engine: enable tests 2024-06-17 23:02:33 -07:00
Tristan Ross
f14d70d5dc
flutter.engine.src: actually fix making logs silent 2024-06-17 22:22:30 -07:00
Tristan Ross
9f0188e6cd
flutter.engine: less verbose building 2024-06-17 22:14:58 -07:00
Tristan Ross
12e6408a61
flutter: disable linux artifacts if engine is used 2024-06-17 22:14:58 -07:00
Tristan Ross
504d414dbd
flutter.engine: remove unnecessary files 2024-06-17 22:14:57 -07:00
Tristan Ross
a65d13a67e
flutter.engine: use builtins for store & add out name attrib 2024-06-17 22:14:57 -07:00
Tristan Ross
c3ae65579a
flutterPackages-source.*.engine.src: prevent hydra log limit issue 2024-06-16 23:18:08 -07:00
Tristan Ross
a54e49b360
flutter.engine: init 2024-06-14 21:01:16 -07:00
Tristan Ross
0284d26d08
flutter323: init 2024-06-13 14:47:34 -07:00
Tristan Ross
cdd31bb726
flutterPackages: support beta releases 2024-06-13 14:47:30 -07:00