Return default shell to minimal state

main
staticvoid 2022-06-29 21:33:03 +03:00
parent 33c2b5421d
commit 553819dd82
1 changed files with 3 additions and 5 deletions

View File

@ -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 \