Make devShell.tools a lazyAttrsOf (#223)

This commit is contained in:
Sridhar Ratnakumar 2024-02-06 12:56:03 -05:00 committed by GitHub
parent 56c5550e18
commit f9d17c3aa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,9 @@
- #210: Add `extraLibraries` to `settings` module.
- #215: Improved debug logging.
- #216: Remove `debug` option (pass `--trace-verbose` to nix instead)
- #222: Improve `cabal.project` parser by handling files not ending with newline
- Fixes
- #222: Improve `cabal.project` parser by handling files not ending with newline
- #223 Make `devShell.tools` a `lazyAttrsOf` (lazy evaluation of values)
- Breaking changes
- #221: Switch to `buildFromSdist`, to allow using non-standard package sets (wherein `cabal-install` is otherwise built without using user's overrides)

View File

@ -18,7 +18,7 @@ in
};
devShell.tools = mkOption {
type = functionTo (types.attrsOf (types.nullOr types.package));
type = functionTo (types.lazyAttrsOf (types.nullOr types.package));
description = ''Build tools always included in devShell'';
default = hp: with hp; lib.optionalAttrs config.defaults.enable {
inherit

View File

@ -17,7 +17,7 @@ let
default = true;
};
tools = mkOption {
type = functionTo (types.attrsOf (types.nullOr types.package));
type = functionTo (types.lazyAttrsOf (types.nullOr types.package));
description = ''
Build tools for developing the Haskell project.