From 553819dd82dd1fa36f1fad3e848d15e98891004c Mon Sep 17 00:00:00 2001 From: staticvoid Date: Wed, 29 Jun 2022 21:33:03 +0300 Subject: [PATCH] Return default shell to minimal state --- flake.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index ec44658..552e15c 100644 --- a/flake.nix +++ b/flake.nix @@ -120,17 +120,15 @@ findFiles = "$(find app -name '*.hs')"; in rec { - default = - thisNative.env.overrideAttrs (a: { - nativeBuildInputs = a.nativeBuildInputs ++ [ thisNative.passthru.pkgs.fourmolu ]; - }); + default = thisNative.env; ghci = default.overrideAttrs (_: { shellHook = '' ghci ${unwords (options ++ extensions)} ${findFiles} exit $? ''; }); - fourmolu = default.overrideAttrs (_: { + fourmolu = default.overrideAttrs (a: { + nativeBuildInputs = a.nativeBuildInputs ++ [ thisNative.passthru.pkgs.fourmolu ]; shellHook = '' fourmolu --mode inplace \ --indentation 2 --check-idempotence --import-export-comma-style leading \