Commit Graph

192 Commits

Author SHA1 Message Date
hacker1024
1b2cac51b2 flutter: Use existing libdeflate derivation 2023-04-14 14:21:38 +10:00
hacker1024
cedcb0b772 flutter: Rename "self" to "unwrapped" in main derivation 2023-04-13 23:19:16 +10:00
hacker1024
13bbb36132 flutter: Move makeWrapper to nativeBuildInputs in wrapper 2023-04-13 22:52:40 +10:00
hacker1024
c59ce54f1d flutter: Add mkFlutterApp as a passthru attribute 2023-04-13 22:02:50 +10:00
hacker1024
4196ddbeb5 flutter: Add git and which to PATH 2023-04-13 21:55:50 +10:00
hacker1024
f3aac6e61e flutter: Add FlafyDev, gilice, and hacker1024 as maintainers 2023-04-13 19:46:45 +10:00
hacker1024
4df7d07ab1 flutter: Remove stray dollar sign from name string 2023-04-13 19:29:42 +10:00
hacker1024
d5aa0c1f97 Merge remote-tracking branch 'NixOS/master' into patch-3 2023-04-13 19:22:50 +10:00
hacker1024
5777f1a122 flutter: Don't check executable locations in doctor
Flutter 3.5.0 adds a check to make sure that the Flutter and Dart tool executables are inside the SDK directory.

This does not play nicely with the wrapping and linking techniques used to package it. It is also impossible for there to be an issue related to binary locations, as everything is set up properly in the derivation.
2023-04-13 18:02:26 +10:00
hacker1024
0f2848638f flutter: 3.3.3 -> 3.7.11 2023-04-13 18:01:58 +10:00
hacker1024
aa9079c678 flutter: Remove prebuilt dependencies from the wrapper
These are no longer needed now that the artifacts are patched.
2023-04-13 18:01:58 +10:00
hacker1024
7f01352e65 flutter: Don't preserve prebuilt SDK asset file permissions
See: https://github.com/flutter/flutter/issues/119961

Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 18:01:53 +10:00
hacker1024
9497627b15 flutter: Don't try to update the immutable artifact cache
Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 18:01:45 +10:00
hacker1024
d6ce0dafcf flutter: Don't use an external artifact cache
The internal artifacts should be used, as they have been patched to use Nix libraries.

Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 18:01:35 +10:00
hacker1024
e552959395 flutter: Remove the FHS wrapper
Now that Flutter artifacts are patched, there is no need for a FHS at runtime or any stage of the build process.

Those relying on it for the Android SDK should look at https://github.com/tadfisher/android-nixpkgs.
2023-04-13 18:01:32 +10:00
hacker1024
9e33e35589 flutter: Add zlib to the linker search path 2023-04-13 18:01:32 +10:00
hacker1024
94a34aadf6 flutter: Use autoPatchelfHook for SDK artifacts
This allows SDK artifacts (including build tools and libraries) to use the right interpreter and library locations, abolishing the need for a FHS or post-build patches.

`autoPatchelf` has been used through `autoPatchelfHook`, instead of the `autoPatchelf` command on just the artifact directory, due to the latter method not patching interpreter paths (https://discourse.nixos.org/t/trying-to-use-autopatchelf/24003).

Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 18:01:25 +10:00
hacker1024
65708c3360 flutter: Don't delete SDK artifacts
Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 18:01:01 +10:00
hacker1024
cda91ab269 flutter: Add cache output and preload pub cache when necessary
Co-authored-by: FlafyDev <flafyarazi@gmail.com>
Co-authored-by: gilice <gilice@proton.me>
Co-authored-by: hacker1024 <hacker1024@users.sourceforge.net>
2023-04-13 17:55:40 +10:00
hacker1024
7840f2055a flutter: Create the flutter derivation with callPackage alone 2023-04-13 00:09:42 +10:00
hacker1024
341fa709ff flutter: Redesign wrapping architecture
The following principles are now in place:

- All wrappers will include SDK file symlinks. There is not much of a reason to not do so, and removing the option to omit it makes it easier to understand what each wrapper does.
- There is no longer a way to get the previous derivation from a wrapper. This could yield unexpected results based on the wrapping order. Instead, "sdk", "unwrapped", and "noFHS" passthru attributes are provided where appropriate.
2023-02-18 00:43:17 +11:00
hacker1024
aa33cb9956 flutter: Reorganize the wrapper code 2023-02-17 23:55:13 +11:00
hacker1024
240d9bdf43 flutter: Properly set linker flags in wrapper 2023-02-17 22:48:41 +11:00
hacker1024
1d547baee0 flutter: Do not rely on pkg-config setup hook to build search path 2023-02-08 16:11:26 +11:00
hacker1024
fd46552867 flutter: Add libdeflate to build environment 2023-02-08 15:27:18 +11:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Thiago Kenji Okada
c1aa02a83d
Merge pull request #200988 from hacker1024/patch-2
flutter: Expose internal derivation creation functions
2023-01-08 15:17:18 +00:00
Bobby Rong
8eab68f943
Merge pull request #199767 from h7x4/master
flutter, mozart: add h7x4 as maintainer
2022-11-23 23:56:47 +08:00
nanashi0x74
0e74b5347a flutter: 3.3.3 -> 3.3.8, flutter.dart: 2.18.2 -> 2.18.4 2022-11-16 23:27:47 +01:00
hacker1024
9c6c81dc49 flutter: Add fake SDK derivation 2022-11-17 01:26:25 +11:00
hacker1024
e4df8739b7 flutter: Implement mkFlutter function using barebones FHS environment 2022-11-14 21:19:33 +11:00
hacker1024
e2adc5d899 flutter: Only enable Linux desktop support by default on Linux 2022-11-14 13:28:45 +11:00
hacker1024
ea48c7c9b6 flutter: Modularize unwrapped, wrapped, and FHS components 2022-11-14 13:11:49 +11:00
hacker1024
c6b044c101 flutter: Use RPATH and CFLAGS to remove Linux desktop compilation and runtime FHS dependency 2022-11-14 11:24:38 +11:00
hacker1024
7fd5a33393 flutter: Move runtime libraries out of FHS using LD_LIBRARY_PATH 2022-11-14 00:22:10 +11:00
hacker1024
32ac87459e flutter: Add dependencies for Linux desktop compilation 2022-11-14 00:08:58 +11:00
hacker1024
6a376d9a78
flutter: Expose internal derivation creation functions 2022-11-13 15:25:35 +11:00
h7x4
2bb2eec813
flutter: add h7x4 as maintainer 2022-11-12 20:18:26 +01:00
colin
a2436fc54d flutter: enable aarch64-linux support 2022-10-09 05:34:42 -07:00
nanashi0x74
4a74e239b5 flutter: add flutter2 package 2022-10-02 19:33:26 +02:00
nanashi0x74
2bdae5cabd flutter: refactor packages 2022-10-02 18:27:35 +02:00
nanashi0x74
a95999ea7f flutter: 3.3.0->3.3.3, flutter.dart: 2.18.0->2.18.2 2022-10-02 17:52:41 +02:00
nanashi0x74
41754242a6 flutter: add cache back in for shaders 2022-09-14 18:50:39 +02:00
nanashi0x74
ffb72bdc5b flutter: fix buildPhase after .packages deprecation
https://medium.com/dartlang/dart-2-18-f4b3101f146c#514e
2022-09-14 18:50:39 +02:00
nanashi0x74
747f298be5 flutter: regenerate move-cache.patch 2022-09-14 18:50:39 +02:00
nanashi0x74
89de698218 flutter: regenerate git-dir.patch 2022-09-14 18:50:38 +02:00
nanashi0x74
bd0f733ce1 flutter: regenerate disable-auto-update.patch 2022-09-14 18:50:38 +02:00
nanashi0x74
f127398be2 flutter: 3.0.4->3.3.0, flutter.dart: 2.17.5->2.18.0 2022-09-14 18:50:38 +02:00
nanashi0x74
43d2b91944 flutter: amend move-cache patch after update 2022-07-11 14:02:36 +02:00
nanashi0x74
02e10382d5 flutter: patch git version check 2022-07-11 14:02:36 +02:00
nanashi0x74
04699b7b7e flutter: 2.10.1->3.0.4 2022-07-11 14:02:36 +02:00
nanashi0x74
2cdbc00b2c flutter: use dart pub instead of deprecated pub command 2022-07-11 14:02:35 +02:00
Anselm Schüler
ce5a25ef1a flutter.dart: 2.16.1 -> 2.16.2 2022-05-13 17:02:03 +02:00
Maciej Krüger
2c686d250e
flutter: 2.10.0 -> 2.10.1 2022-02-23 15:10:58 +01:00
Maciej Krüger
fd41185d86
flutter.mkFlutterApp: init
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-02-19 15:07:41 +01:00
Luke Granger-Brown
9dcf20f284 flutter: 2.8.0 -> 2.10.0 2022-02-06 21:03:45 +00:00
Eric Dallo
11644ddcf2
flutter: add missing dart-sdk cache folder 2022-01-11 19:47:15 -03:00
Eric Dallo
70bbf1e9b2
flutter: fix move-cache patch 2021-12-25 10:54:51 -03:00
Eric Dallo
f6da7b4007
flutter: 2.5.1 -> 2.8.0 2021-12-11 14:16:59 -03:00
Thiago Kenji Okada
2962edb944 flutter: remove myself from maintainers 2021-11-23 13:26:50 -03:00
ilkecan
d882c5751b flutter: add passthru.dart 2021-11-16 20:24:31 +03:00
Eric Dallo
804e2edff5
flutter: 2.2.1 -> 2.5.1 2021-09-25 00:28:02 -03:00
NANASHI0X74
af734f5a8c
dart: 2.12.2 -> 2.13.1 (#126979)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-06-16 03:42:30 +02:00
Sandro
02d88b1ff1
Merge pull request #125488 from NANASHI0X74/bump-flutter-2.2
flutter 2.0.3 -> 2.2.1
2021-06-10 21:00:26 +02:00
nanashi0x74
d05d2113bb flutter: 2.0.3 -> 2.2.1 2021-06-10 20:30:03 +02:00
AndersonTorres
e9e5f5f84d Change all alsaLib references to alsa-lib 2021-06-10 01:12:49 -03:00
kolaente
ba619289b6
flutter: remove patchelf 2021-03-23 21:00:23 +01:00
kolaente
e5e446bdc0
flutter: add inherit version 2021-03-23 20:51:58 +01:00
kolaente
3be901912d
flutter 1.22.4 -> 2.0.3 2021-03-21 14:06:57 +01:00
drsk
e619018449 flutter: added dev libraries for the emulator
Four additional libraries seem to be needed to start the emulator on my
machine.
2021-02-01 11:08:25 +01:00
Thiago Kenji Okada
910d06bb90 flutter: small refactorings in derivation 2021-01-29 18:05:13 -03:00
Thiago Kenji Okada
f5294b802d Revert "flutter: 1.22.4 -> 1.22.5"
This reverts commit 5f72a823de.
2021-01-29 14:50:13 -03:00
Thiago Kenji Okada
d87aba56a8 dart/flutter: add thiagokokada as maintainer 2021-01-27 14:48:10 -03:00
Thiago Kenji Okada
5f72a823de flutter: 1.22.4 -> 1.22.5
Needs to do a build in 2-pass now since Google stopped shipping all
dependencies needed to build Flutter. This may be an oversight from them
since they used to ship everything, but this makes the whole build
process more robust.

The first step will download all dependencies from pub, and the
second step will build Flutter. Since we need to build repository
first, we also require a new depsSha256 parameter to be passed, that
represents the SHA256 of the resulting derivation of all Flutter
dependencies downloaded from https://pub.dev.

This commit also makes some changes in mkFlutter, allowing the
user to pass src instead of passing version/channel/filename, allowing
for more flexibility (i.e: building from a local fork of Flutter).
2021-01-27 14:48:10 -03:00
Thiago Kenji Okada
d6db914fc4 flutter: 1.22.0 -> 1.22.4 2021-01-27 14:48:10 -03:00
Thiago Kenji Okada
ec644e05cb flutter: remove non-stable versions
Related issue #108606.

Nowadays we have multiple outdated versions of Flutter in nixpkgs.
Instead, let's focus in having in having stable versions of Flutter
working.

Users needing to use beta or dev versions of Flutter can use mkFlutter
function, that still exists.
2021-01-27 14:48:06 -03:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Thiago Kenji Okada
bbbe322b1a flutter: refactor and reduce derivation size
Instead of copying the whole dart derivation to bin/cache/dart-sdk
directory, just symlink it.

Also, make sure that the flutter is build from dart passed as a
parameter.

Before:
/nix/store/p3avfmvd0yrjpwwml7vvqbjin5vacx2k-flutter-stable-1.22.0	2084894968

After:
/nix/store/750k4z1yj5xsw7ymmwvn7cfjjzkaygzg-flutter-stable-1.22.0	1647047080
2021-01-06 17:50:45 -03:00
Thiago Kenji Okada
a03f012956 flutter: format with nixpkgs-fmt 2021-01-06 17:50:45 -03:00
Mario Rodas
e250fef768
Merge pull request #99920 from ericdallo/add-dart-to-flutter
flutter: Bump and add dart cache to flutter
2020-10-30 08:56:54 -05:00
Eric Dallo
bee3fb885f
flutter: Add dart cache to flutter 2020-10-30 09:58:06 -03:00
Ben Siraphob
c98962e1a3 treewide: remove periods from end of package descriptions 2020-10-25 20:13:18 +07:00
Eric Dallo
65062ad39f
flutter: export mkFlutter
With that, users can build custom versions of flutter
2020-08-28 13:13:30 -03:00
kolaente
ae1a227eb1
flutterPackages.beta: 1.19.0-4.3.pre -> 1.20.0-7.2.pre, flutterPackages.dev: 1.20.0-3.0.pre -> 1.21.0-1.0.pre 2020-07-29 16:56:22 +02:00
kolaente
f1e1588fa4
flutter dev 1.20.0-0.0pre -> 1.20.0-3.0-pre 2020-07-05 17:22:35 +02:00
kolaente
85c1ae0fc0
flutter beta 1.19.0-4.1pre -> 1.19.0-4.3-pre 2020-07-05 17:19:21 +02:00
kolaente
ed596a2069
flutter stable 1.17.3 -> 1.17.5 2020-07-05 17:15:14 +02:00
kolaente
615437a54c
Fix removing flutter upgrade 2020-06-17 18:42:14 +02:00
kolaente
b83408b976
flutter packages update 2020-06-17 18:27:50 +02:00
Bastien Rivière
8986e95dca flutter: update channels + fix dev channel 2020-04-05 15:35:11 +02:00
Bastien Rivière
4e0d07f6d7
flutter: symlink common patches 2020-03-29 14:25:16 +02:00
Bastien Rivière
d037e64ef6
flutter: init 1.12.13+hotfix.8
flutter: add beta and dev channels

flutter: artifacts are now downloaded in $HOME/.cache/flutter

flutter: remove all artifacts from flutter

flutter: fix lockfile path

flutter: fix pub_cache

flutter: fix flutter_tools/.packages pointing to /build

flutter: clean patches

flutter: fix write error on .cache/flutter/lockfile

flutter: add zlib as a dependency

flutter: add missing dependencies

flutter: fix flutter version

flutter: update versions + dependencies
2020-03-27 23:21:06 +01:00