From ad078200f935bb1b7977e2cf5eaeec9007dd55e3 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Wed, 18 Nov 2020 11:53:36 +0100 Subject: [PATCH] Work around nix default values behavior --- shell.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shell.nix b/shell.nix index ed4e26b..501ae7b 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,6 @@ -attrs@ - { compiler ? "ghc8101" - , withHoogle ? true - }: -(import ./. attrs).env +attrs@{...}: +let defaultAttrs = { + withHoogle = true; + compiler = "ghc8101"; +}; +in (import ./. (defaultAttrs // attrs)).env