diff options
author | hacker1024 <hacker1024@users.sourceforge.net> | 2023-10-29 01:33:24 +1100 |
---|---|---|
committer | FlafyDev <flafyarazi@gmail.com> | 2023-12-26 18:48:12 +0200 |
commit | 32e3ea18d572250c397694dca1d3158493637357 (patch) | |
tree | be155d6df9d819ac0d98f174a21b52cdef00f002 /doc | |
parent | 81a99463d8b2047083fea88534ae9b7f27355835 (diff) | |
download | nixlib-32e3ea18d572250c397694dca1d3158493637357.tar nixlib-32e3ea18d572250c397694dca1d3158493637357.tar.gz nixlib-32e3ea18d572250c397694dca1d3158493637357.tar.bz2 nixlib-32e3ea18d572250c397694dca1d3158493637357.tar.lz nixlib-32e3ea18d572250c397694dca1d3158493637357.tar.xz nixlib-32e3ea18d572250c397694dca1d3158493637357.tar.zst nixlib-32e3ea18d572250c397694dca1d3158493637357.zip |
buildDartApplication: Document customSourceBuilders
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/dart.section.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/languages-frameworks/dart.section.md b/doc/languages-frameworks/dart.section.md index 55f0b20d6e95..9af02ef143b6 100644 --- a/doc/languages-frameworks/dart.section.md +++ b/doc/languages-frameworks/dart.section.md @@ -35,6 +35,14 @@ buildDartApplication rec { } ``` +### Patching dependencies {#ssec-dart-applications-patching-dependencies} + +Some Dart packages require patches or build environment changes. Package derivations can be customised with the `customSourceBuilders` argument. + +A collection of such customisations can be found in Nixpkgs, in the `development/compilers/dart/package-source-builders` directory. + +This allows fixes for packages to be shared between all applications that use them. It is strongly recommended to add to this collection instead of including fixes in your application derivation itself. + ### Running executables from dev_dependencies {#ssec-dart-applications-build-tools} Many Dart applications require executables from the `dev_dependencies` section in `pubspec.yaml` to be run before building them. |