Skip to content

Commit f9d17c3

Browse files
authored
Make devShell.tools a lazyAttrsOf (#223)
1 parent 56c5550 commit f9d17c3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
- #210: Add `extraLibraries` to `settings` module.
66
- #215: Improved debug logging.
77
- #216: Remove `debug` option (pass `--trace-verbose` to nix instead)
8-
- #222: Improve `cabal.project` parser by handling files not ending with newline
8+
- Fixes
9+
- #222: Improve `cabal.project` parser by handling files not ending with newline
10+
- #223 Make `devShell.tools` a `lazyAttrsOf` (lazy evaluation of values)
911
- Breaking changes
1012
- #221: Switch to `buildFromSdist`, to allow using non-standard package sets (wherein `cabal-install` is otherwise built without using user's overrides)
1113

nix/modules/project/defaults.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ in
1818
};
1919

2020
devShell.tools = mkOption {
21-
type = functionTo (types.attrsOf (types.nullOr types.package));
21+
type = functionTo (types.lazyAttrsOf (types.nullOr types.package));
2222
description = ''Build tools always included in devShell'';
2323
default = hp: with hp; lib.optionalAttrs config.defaults.enable {
2424
inherit

nix/modules/project/devshell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let
1717
default = true;
1818
};
1919
tools = mkOption {
20-
type = functionTo (types.attrsOf (types.nullOr types.package));
20+
type = functionTo (types.lazyAttrsOf (types.nullOr types.package));
2121
description = ''
2222
Build tools for developing the Haskell project.
2323

0 commit comments

Comments
 (0)