Work around nix default values behavior

This commit is contained in:
Guillaume Maudoux 2020-11-18 11:53:36 +01:00
parent b8cc8dfdee
commit ad078200f9
1 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
attrs@
{ compiler ? "ghc8101"
, withHoogle ? true
}:
(import ./. attrs).env
attrs@{...}:
let defaultAttrs = {
withHoogle = true;
compiler = "ghc8101";
};
in (import ./. (defaultAttrs // attrs)).env