sourceOverrides: fix types and add documentation about the version (#523)

* sourceOverrides: fix type specification

* sourceOverrides: explain where to look for the overriding version
This commit is contained in:
Yueh-Shun Li 2023-06-22 16:43:29 +08:00 committed by GitHub
parent fc0bb61fa3
commit 70ddec09f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,9 +102,10 @@ in {
sourceOverrides = mkOption {
default = old: {};
type = t.functionTo (t.lazyAttrsOf (t.listOf t.package));
type = t.functionTo (t.lazyAttrsOf (t.attrsOf t.package));
description = ''
Override the sources of dependencies or top-level packages.
Refer to the `dream-lock.json` for the package version to override.
For more details, refer to
https://nix-community.github.io/dream2nix/intro/override-system.html
'';