Skip to content

Commit ad07820

Browse files
committed
Work around nix default values behavior
1 parent b8cc8df commit ad07820

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

shell.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
attrs@
2-
{ compiler ? "ghc8101"
3-
, withHoogle ? true
4-
}:
5-
(import ./. attrs).env
1+
attrs@{...}:
2+
let defaultAttrs = {
3+
withHoogle = true;
4+
compiler = "ghc8101";
5+
};
6+
in (import ./. (defaultAttrs // attrs)).env

0 commit comments

Comments
 (0)