Skip to content

Commit

Permalink
Put all rhyolite packages in the shell
Browse files Browse the repository at this point in the history
This means that when you drop into `nix-shell -A proj.shells.ghc`, cabal
will build all of the local packages that are dependencies you have,
instead of them being built as part of entering the nix-shell. This is
somewhat painful in that more building happens than needed for most
dependencies, but the previous approach led to being unable to enter a
nix-shell if there was a broken package.
  • Loading branch information
madeline-os committed Aug 11, 2022
1 parent 354c6b4 commit 47c010c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ packages:
account/types/
backend/
beam/db/
beam/orphans/
beam/task/backend/
beam/task/types/
common/
Expand Down
14 changes: 4 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,12 @@ in obelisk // {
# Used to build this project. Should only be needed by CI, devs.
proj = obelisk.reflex-platform.project ({ pkgs, ... }@args: {
overrides = haskellOverrides;
packages = {
rhyolite-backend = ./backend;
rhyolite-common = ./common;
semimap = ./semimap;
rhyolite-frontend = ./frontend;
rhyolite-test-suite = ./test;
packages = rhyolitePackages // {
"rhyolite-test-suite" = ./test;
};
shells = rec {
ghc = [
"rhyolite-backend"
"rhyolite-test-suite"
] ++ ghcjs;
ghc = builtins.attrNames rhyolitePackages
++ [ "rhyolite-test-suite" ];
ghcjs = [
"rhyolite-common"
"rhyolite-frontend"
Expand Down

0 comments on commit 47c010c

Please sign in to comment.