Skip to content

Commit

Permalink
Implement CI-only nix shell without hoogle
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk committed Jan 18, 2022
1 parent 6c4093b commit 37da01c
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions shell.nix
Expand Up @@ -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
Expand All @@ -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 = {
Expand Down Expand Up @@ -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;
}

0 comments on commit 37da01c

Please sign in to comment.