Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

haskell.nix revamp#224

Draft
angerman wants to merge 15 commits into
masterfrom
angerman/haskell-nix
Draft

haskell.nix revamp#224
angerman wants to merge 15 commits into
masterfrom
angerman/haskell-nix

Conversation

@angerman

@angerman angerman commented Jan 16, 2020

Copy link
Copy Markdown
Contributor

Ok. This is basically a full haskell.nix restart from the grounds up. We'll need to add back the control logic as well. But I'd like this to be a process with @erikd, so he is part of the discovery what is ci related, what is operations related, ... and can have a word on where that logic should reside.

Task list:

  • default.nix (haskell.nix setup to build the project form the cabal.project as ground truth)
  • ci.nix (to build the project using hercules-ci) We'll use default.nix only for now.
  • on sha256 why we need them and how to update them.
  • bring back docker logic
  • bring back deployment/ops logic.

@erikd

erikd commented Jan 17, 2020

Copy link
Copy Markdown
Member

Would like to see this lot squashed down to two commits, one with the changes to cabal.project /stack.yaml and the other with all the Nix changes.

add io-sim, ouroboros-network-testing, cardano-shell. We need those
for haskell.nix as it tries to compute a full plan (with all tests).
@angerman angerman force-pushed the angerman/haskell-nix branch 3 times, most recently from 03ee9a1 to 58b51ad Compare February 3, 2020 13:24
@angerman angerman force-pushed the angerman/haskell-nix branch from 58b51ad to edaf358 Compare February 3, 2020 13:29
@angerman

angerman commented Feb 3, 2020

Copy link
Copy Markdown
Contributor Author

@erikd alirght, I think what's missing is the docker stuff, I'll try to finish that tomorrow, completely missed that piece.

Please ask all the questions about nix you have about this. It cuts both ways. The pure CI logic essenitally ends before the Add niv commit. That one and the following is nix code related to operational concerns (providing a service description, ...)

@angerman angerman force-pushed the angerman/haskell-nix branch from edaf358 to 3f91130 Compare February 3, 2020 13:38
This will add
- x86_64-linux
- x86_64-macos
- x86_64-mingw (on linux)
- docker inputs
@angerman angerman force-pushed the angerman/haskell-nix branch from 5475fd4 to 1a761f9 Compare February 4, 2020 13:22
Comment thread update-cabal-project.py Outdated
dict["subdir"] = ''
if not (dict['loc'], dict['tag']) in globalCache:
prefetchJSON = subprocess.run(
["nix-prefetch-git", "--quiet", dict['loc'], dict['tag']],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This one should have an option to go through ssh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants