Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell.nix, almost #645

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dist/
*.swp
*.swo
*~
\#*
*_flymake.hs
result*
**/tags
Expand Down
18 changes: 18 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ withHoogle ? true
}:
let
default = import ./default.nix {};
in
default.nix-tools._raw.shellFor {
packages = ps: with ps; [
io-sim
io-sim-classes
ouroboros-consensus
ouroboros-network
typed-transitions
];
inherit withHoogle;
buildInputs = with default.nix-tools._raw; [
cabal-install.components.exes.cabal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to assume that the user already has the latest cabal in their profile, so we don't need to add it to the project's dependencies.

Copy link
Contributor Author

@deepfire deepfire Jun 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really? The cabal in question might be incongruent in some fashion with the GHC in use -- or even completely absent.

If we choose not to specify it here, it would be one of those extra things for someone to care (as in debug, research etc.) about.

];
}