diff --git a/shell.nix b/shell.nix index 27b50f7ab88..0924ec23819 100644 --- a/shell.nix +++ b/shell.nix @@ -21,6 +21,15 @@ }) }: let + packages = ps: with ps; [ + hydra-prelude + hydra-node + hydra-plutus + hydra-cluster + merkle-patricia-tree + plutus-cbor + ]; + libs = [ libsodium-vrf pkgs.systemd @@ -45,13 +54,7 @@ let ]; haskellNixShell = hsPkgs.shellFor { - packages = ps: with ps; [ - hydra-prelude - hydra-node - hydra-plutus - hydra-cluster - merkle-patricia-tree - ]; + packages = packages; # Haskell.nix managed tools (via hackage) tools = { @@ -92,8 +95,29 @@ let STACK_IN_NIX_SHELL = "true"; }; + # A shell disabling hoogle, for use in CI + # FIXME: I did not manage to reuse haskellNixShell and simply change `withHoogle` value + # so copy/pasted everything else + ciShell = hsPkgs.shellFor { + packages = packages; + + # Haskell.nix managed tools (via hackage) + tools = { + cabal = "3.4.0.0"; + fourmolu = "latest"; + haskell-language-server = "latest"; + }; + + buildInputs = libs ++ tools; + + withHoogle = false; + + # Always create missing golden files + CREATE_MISSING_GOLDEN = 1; + }; + in haskellNixShell // { cabalOnly = cabalShell; - ci = haskellNixShell { withHoogle = false; }; + ci = ciShell; }