Skip to content

Commit

Permalink
buildDartApplication: Document customSourceBuilders
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker1024 committed Oct 28, 2023
1 parent 3365206 commit 6fd1e80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/languages-frameworks/dart.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6fd1e80

Please sign in to comment.