From 23952fb64184b44d1c884dd592b6a19381413bf2 Mon Sep 17 00:00:00 2001 From: hacker1024 Date: Sun, 29 Oct 2023 01:23:47 +1100 Subject: 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. --- doc/languages-frameworks/dart.section.md | 4 ---- 1 file changed, 4 deletions(-) (limited to 'doc') diff --git a/doc/languages-frameworks/dart.section.md b/doc/languages-frameworks/dart.section.md index 512f55a68b6bc..55f0b20d6e95f 100644 --- a/doc/languages-frameworks/dart.section.md +++ b/doc/languages-frameworks/dart.section.md @@ -13,8 +13,6 @@ This can be converted to JSON from YAML with something like `yq . pubspec.lock`, If the package has Git package dependencies, the hashes must be provided in the `gitHashes` set. If a hash is missing, an error message prompting you to add it will be shown. -The `depsListFile` must always be provided when packaging in Nixpkgs. It will be generated and printed if the derivation is attempted to be built without one. Alternatively, `autoDepsList` may be set to `true` only when outside of Nixpkgs, as it relies on import-from-derivation. - The `dart` commands run can be overridden through `pubGetScript` and `dartCompileCommand`, you can also add flags using `dartCompileFlags` or `dartJitFlags`. Dart supports multiple [outputs types](https://dart.dev/tools/dart-compile#types-of-output), you can choose between them using `dartOutputType` (defaults to `exe`). If you want to override the binaries path or the source path they come from, you can use `dartEntryPoints`. Outputs that require a runtime will automatically be wrapped with the relevant runtime (`dartaotruntime` for `aot-snapshot`, `dart run` for `jit-snapshot` and `kernel`, `node` for `js`), this can be overridden through `dartRuntimeCommand`. @@ -34,7 +32,6 @@ buildDartApplication rec { }; pubspecLock = lib.importJSON ./pubspec.lock.json; - depsListFile = ./deps.json; } ``` @@ -95,7 +92,6 @@ flutter.buildFlutterApplication { }; pubspecLock = lib.importJSON ./pubspec.lock.json; - depsListFile = ./deps.json; } ### Usage with nix-shell {#ssec-dart-flutter-nix-shell} -- cgit 1.4.1