Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
buildDartApplication: init
|
|
lib.importJSON ./file.json #2
|
|
This makes it more ergonomical to use, and is consistent with
buildDartApplication.
|
|
list with IFD
This is useful for projects outside of Nixpkgs.
|
|
This removes the need for IFD.
|
|
|
|
Some Flutter packages require additional attribute values to be added to buildFlutterApplication, to add things like libraries and environment variables.
To prevent duplication in applications that use the packages, a repository of package overrides is kept. buildFlutterApplication will look for package overrides for each dependency, and apply them by calling overrideAttrs on itself.
|
|
This allows thing like `flutterBuildFlags` and `runtimeDependencies` to be overridden with `overrideAttrs`.
Attributes that affect dependency retrieval cannot be overridden.
|
|
|
|
This wraps Flutter programs with an appropriate LD_LIBRARY_PATH.
For some reason, the RUNPATH of the executable is not used to load dynamic libraries in dart:ffi with DynamicLibrary.open().
This could alternatively be fixed with patchelf --add-needed, but this would cause all the libraries to be opened immediately,
which is not what application authors expect.
The name of the runtimeDependencies argument was chosen to match autoPatchelfHook, which has a similar feature.
|
|
This reduces the size of the executable.
It works well with Nix - if the user includes the version in their bug report, the exact debugging symbols required can easily be found.
|
|
|
|
|
|
derivation with an output hook
This allows anything that needs to build a Dart application (such as a future `buildDartApplication` function) to use the same setup.
|
|
Pub does not perform any Git operations on the cached package directly, instead cloning it through a mirror.
The .git directories are not needed, and are a source of non-determinism.
|
|
Co-authored-by: FlafyDev <flafyarazi@gmail.com>
The dependency fixed-output derivation now uses the recursive hash mode to avoid tarballing and copying all the files.
https://github.com/NixOS/nix/issues/6660 was ran into during the development of this change. Input references were found in the Git package cache before nukeReferences was used.
It turns out that the mirrors in the Git package cache do not actually need to be preserved, as the SDK does not use them during the build process. They are therefore deleted in the dependency derivation and re-created as blank repositories in the main derivation.
A description of the Git package cache layout can be found here: https://github.com/dart-lang/pub/blob/c890afa1d65b340fa59308172029680c2f8b0fc6/lib/src/source/git.dart#L339
|
|
Files and directories such as .dart_tool, .flutter-plugins, .packages and .pub-cache/hosted/*/.cache will be happily regenerated by the SDK in an offline environment.
The patches being made to these files and directories to remove non-determinism were flawed: They did not handle cases where files only appeared in one run, or cases where tooling versions had an effect on the output.
|
|
derivation name
As the dependency tarballs no longer include SDK artifacts, they are not platform dependent.
|
|
The deterministic Git script depends on it.
|
|
|
|
While this may be beneficial for packages that ship native binaries, this causes issues due to Flutter packages that have inappropriately uploaded build artifacts (such as those from example subprojects) to pub.dev.
|
|
Artifacts are now supplied by the Flutter SDK derivation.
In addition, they are no longer a factor in the dependency hash calculation.
|
|
The build environment is now set up by the Flutter wrapper, and does not need to be done in mkFlutterApp.
|
|
|
|
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
|
|
|
|
|
|
This file is deprecated, unused, and not generated in newer Flutter versions.
|
|
This ensures that all runtime dependencies are supplied.
|
|
Previously this was pulling from $built, which got moved to $out/app,
so the glob didn't do anything. Now uses find on $out/app
|
|
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
|
|
Otherwise it tries to run some other commands, this prevents that
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
|
|
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
|