Maciej Krüger
10bfb6d146
Merge pull request #298683 from FlafyDev/flutter-gradle-fix
...
flutter: move flutter-tools' Gradle build files out of Nix Store
2024-03-25 01:53:52 +01:00
FlafyDev
fdab275c08
flutter: move flutter-tools' Gradle build files out of Nix Store
2024-03-24 18:35:02 +02:00
Mads Marquart
04ef11c35a
flutter: Allow impure reference to the arch
binary on macOS
...
The `arch` binary is not available in `darwin.adv_cmds`, it is provided via. `darwin.system_cmds` instead, but support for this is still experimental.
2024-03-18 17:19:10 +01:00
Yueh-Shun Li
91b3db1309
treewide: fix sourceRoot for fetchgit-based src
...
According to Nixpkgs manual[1] and NixOS 23.11 Release Note[2], the
`sourceRoot` attribute passed to `stdenv.mkDerivation` should be
specified as `"${src.name}"` or `"${src.name}/subdir"` when `src` is
produced using `fetchgit`-based fetchers.
`sourceRoot = "source"` or `sourceRoot = "source/subdir"` is based on
the assumption that the `name` attribute of these pre-unpacked fetchers
are always `"source"`, which is not the case. Expecting constant `name`
also makes the source FODs prone to irrelevent hashes during version
bumps.
[1]: https://nixos.org/manual/nixpkgs/unstable/#var-stdenv-sourceRoot
[2]: https://nixos.org/manual/nixos/stable/release-notes#sec-release-23.11
2024-03-09 07:53:25 +08:00
FlafyDev
fcaebf4a40
flutter: 3.16.7 -> 3.19.0
2024-02-17 15:34:33 +02:00
FlafyDev
d77999079f
flutter: remove unnecessary git-dir.patch
...
Flutter still works like normal with the patch `git-dir.patch` removed.
I'm not sure what it's supposed to do but I don't think it's necessary anymore.
2024-02-17 15:34:10 +02:00
Janne Heß
ab168d1f13
flutter: Apply multiple Darwin aarch64 fixes
...
Taken from: https://github.com/NixOS/nixpkgs/pull/286750#issuecomment-1935147584
2024-02-11 18:28:40 +01:00
Janne Heß
db38aeee72
flutter316: Add aarch64-darwin hashes and fix meta.platforms
2024-02-11 18:28:40 +01:00
Janne Heß
5dfd5ecc84
flutter313: Fix aarch64-darwin
2024-02-11 18:28:40 +01:00
sternenseemann
488b4c9fa1
flutter/update: provide fake hashes of the proper length
2024-01-31 21:21:09 +01:00
sternenseemann
6dc3672c15
flutter/update: add .in extensions to Nix expression template files
...
Use autotools inspired extensions (as syntax sort of matches) to make
clear that these are not Nix expressions yet and don't necessarily parse
or evaluate.
2024-01-31 20:30:34 +01:00
sternenseemann
8cf33c2dd1
flutter: remove path interpolation
...
Path interpolation is not supported in Nix 2.3 which nixpkgs maintains
support for.
2024-01-31 20:30:33 +01:00
hacker1024
f51a0b053d
flutter.buildFlutterApplication: Allow building for the Web
2024-01-18 10:27:32 +11:00
FlafyDev
15b87fdcd9
flutter: 3.13.8 -> 3.16.7
2024-01-15 16:26:36 +02:00
FlafyDev
8710f46544
flutter: Add update script
2024-01-15 16:26:34 +02:00
FlafyDev
5e99fd3304
flutter: Move to a structure more fitting for multiple versions
2024-01-15 01:35:45 +02:00
FlafyDev
b73ceb1ca7
flutter: Make it possible to override operatingSystem
internally
...
Makes it possible to get artifact hashes for other system platforms.
Useful for an update script.
2024-01-15 01:35:45 +02:00
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