Commit Graph

175 Commits

Author SHA1 Message Date
FlafyDev
da6757fd9d flutter: Make fetch-artifects.nix independent from the host's platform
This is useful for an update script
2024-01-11 01:37:59 +02:00
FlafyDev
579e01329e flutter: Rename platform to flutterPlatform
This helps avoid the ambiguity between Flutter platforms like Linux, IOS, and Android and platforms like linux-x64
2024-01-11 01:37:55 +02:00
FlafyDev
dc1bb8caba flutter: Add version json file
Needed for flutter doctor and flutter --version

Co-authored-by: Sergii Maksymov <ua.maximoff@gmail.com>
2024-01-11 01:37:48 +02:00
hacker1024
23952fb641 buildDartApplication: Remove depsListFile
We get a dependency list with pub2nix now. We can no longer easily distinguish between development dependency dependencies and regular dependency dependencies, but we weren't doing this anyway.
2023-12-26 18:48:12 +02:00
hacker1024
3081228cc4 dart: Use Nix instead of Pub 2023-12-26 17:05:20 +02:00
Maciej Krüger
9e046794a8
flutter: dont fail on missing lockfile 2023-12-21 11:57:23 +01:00
hacker1024
03ae92a17d
flutter: Remove aarch64-darwin platform
There are no aarch64-darwin host artifacts.
Development should be done with Rosetta 2.

- https://github.com/flutter/flutter/issues/60118
- https://github.com/flutter/flutter/issues/69157
- https://github.com/flutter/flutter/issues/101138
2023-12-21 11:46:17 +01:00
hacker1024
133d03eb42
flutter: Set FLUTTER_ALREADY_LOCKED to prevent writes to the immutable lockfile 2023-12-21 11:46:17 +01:00
hacker1024
d8b20d93ad
flutter: Remove FLUTTER_CACHE_DIR 2023-12-21 11:46:16 +01:00
hacker1024
981831870d
flutter: Remove runHooks in fetch-artifacts.nix runCommand 2023-12-21 11:46:16 +01:00
hacker1024
27f61f5e1b
flutter: Remove existing .git directories 2023-12-21 11:46:16 +01:00
hacker1024
456779edc2
flutter: Move artifact override logic to fetch-artifacts.nix 2023-12-21 11:46:15 +01:00
hacker1024
c969311bc5
flutter: Add artifact hashes for all platforms 2023-12-21 11:46:15 +01:00
hacker1024
c524427335
flutter: Set host platform at compilation
The Flutter CLI normally detects the host platform at runtime, but this results in incorrect behaviour in the Nix build environment.
2023-12-21 11:46:14 +01:00
hacker1024
17a034deaf
flutter: Add platform artifact derivations to cacheDir passthru 2023-12-21 11:46:14 +01:00
hacker1024
ef3625ff56
flutter: Link in the fluter_tools package_config.json 2023-12-21 11:46:13 +01:00
hacker1024
b6a3ff83e1
flutter: Propagate .git in SDK symlink derivation 2023-12-21 11:44:14 +01:00
hacker1024
44030b7f7d
flutter: Fetch artifacts with flutter prefetch 2023-12-21 11:44:14 +01:00
hacker1024
de1d8091da
flutter: Update FLUTTER_ROOT in SDK symlink derivation 2023-12-21 11:44:13 +01:00
hacker1024
59493e57ed
flutter: Deregister the Pub dependencies artifact
There is no need to cache the flutter_tool pub dependencies, as it is built reproducibly with Nix.
2023-12-21 11:44:13 +01:00
hacker1024
b63ffdda86
flutter: Allow adding additional Dart VM options when launching CLI 2023-12-21 11:44:12 +01:00
hacker1024
e13356db8e
flutter: Disable automatic updates without breaking precache 2023-12-21 11:44:12 +01:00
hacker1024
c3237a8d38
flutter: Remove JIT explanation
Turns out it was a patch that was causing the strange behaviour.
2023-12-21 11:44:11 +01:00
hacker1024
5f6d29a70a
flutter: Use JIT snapshot for flutter_tools 2023-12-21 11:44:11 +01:00
hacker1024
2dc524e2a7
flutter: Remove any existing Dart SDK 2023-12-21 11:44:10 +01:00
hacker1024
ec0c30d6d7
flutter: Specify commit date for fake SDK repository 2023-12-21 11:44:10 +01:00
hacker1024
075bbf494b
flutter: Use custom launchers 2023-12-21 11:44:09 +01:00
hacker1024
e22019bc2f
flutter: Allow overriding the FLUTTER_CACHE_DIR 2023-12-21 11:44:09 +01:00
hacker1024
175112a996
flutter: Remove hard dependency on Git 2023-12-21 11:44:08 +01:00
hacker1024
00a11274d4
flutter: Include patches in flutter_tools snapshot 2023-12-21 11:44:08 +01:00
hacker1024
30170047b8
flutter: Use deepClone = true for SDK repository 2023-12-21 11:44:07 +01:00
hacker1024
ee289896a7
flutter: Build flutter_tools with buildDartApplication 2023-12-21 11:44:07 +01:00
Weijia Wang
6798f6a2c4
Merge pull request #262320 from FlafyDev/fix/flutter-version
flutter: fix version
2023-10-24 07:43:13 +02:00
hacker1024
46e7b32262 flutterPackages.stable: 3.13.4 -> 3.13.8 2023-10-22 16:12:29 +11:00
hacker1024
2addb67a14 buildFlutterApplication: Wrap buildDartApplication 2023-10-22 00:31:58 +11:00
FlafyDev
8e0b306c82 flutter: fix version
In commit 6cecfa12b5 the ability to do `pkgs.flutter.version` was removed

I assume this was not intended, so this commit brings it back.
2023-10-20 18:34:27 +03:00
Maciej Krüger
6cecfa12b5
Merge pull request #239570 from hacker1024/feature/flutter-wrapper-gapps
flutter: Use wrapGAppsHook
2023-09-20 23:34:26 +02:00
Maciej Krüger
ac7c3b5a19
Merge pull request #251568 from hacker1024/patch-5
flutter: Pass through engineArtifacts in wrapper
2023-09-20 23:27:51 +02:00
gilice
64b86c1a19 flutter: 3.13.0 -> 3.13.4 2023-09-19 17:18:05 +02:00
gilice
c511f60c48 flutter: 3.13.0 -> 3.13.4 2023-09-19 08:27:14 +00:00
gilice
bf1c8043b0 flutter: remove myself from maintainers
I don't have the time for this anymore.
2023-09-13 17:37:52 +02:00
Maciej Krüger
b9ab9a92b9
Merge pull request #251409 from gilice/flutter-313 2023-08-30 22:00:14 +02:00
hacker1024
98fa8a27f6 flutter: Remove artifact hashes for 3.10.5 engine 2023-08-29 13:12:13 +02:00
hacker1024
f5a2f237de flutter37: Drop 2023-08-29 13:12:11 +02:00
hacker1024
41bbc2c311 flutter: Supply CA bundle in sandbox 2023-08-29 13:12:01 +02:00
hacker1024
84347c2195 flutter: Use wrapGAppsHook
Flutter's Linux desktop embedding uses GTK. wrapGAppsHook should be used.
2023-08-28 11:59:44 +10:00
gilice
40e82051b9 flutter: 3.10.5 -> 3.13.0
flutter: Update remaining engine artifact hashes for v3.13.0

Co-Authored-By: hacker1024 <20849728+hacker1024@users.noreply.github.com>
2023-08-27 16:06:45 +02:00
hacker1024
0df5c9a81d
flutter: Pass through engineArtifacts in wrapper 2023-08-26 10:29:37 +00:00
Pol Dellaiera
3eb7f7a63b
Merge pull request #248683 from oxij/tree/source-root-continues-3
treewide: cleanup `sourceRoot` and `setSourceRoot` usage
2023-08-15 05:53:52 +02:00
Luke Granger-Brown
19cd58a6ca flutter37: fix skyNotice hash for version 1a65d409c7a1438a34d21b60bf30a6fd5db59314
Using fetchurl like this means that, if you build the `flutter`
derivation first, you will get a file named "LICENSE" in your store with
the correct hash. `flutter37` will then build because this file is
already in your store, even though the LICENSE to which _it_ refers is
different. This is dangerous in this case - but an intentional design
decision in the way fetchurl works to allow artifacts which are the same
to be fetched from arbitrary sources, or even pre-populated into the
store.

To avoid this, explicitly tag the fetchurl with a name and the commit
hash we're fetching from. This means we _must_ fetch these separately
for each flutter version and avoids the problem of accidentally reusing
artifacts for a different build.
2023-08-13 14:30:43 +01:00