Skip to content

Improve flake code #1743

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

Merged
merged 9 commits into from
Oct 11, 2022
Merged

Improve flake code #1743

merged 9 commits into from
Oct 11, 2022

Conversation

hamishmack
Copy link
Collaborator

Also moves the rawFlake code into a haskellLib.mkFlake function

Also moves the `rawFlake` code into a `haskellLib.mkFlake` function
@hamishmack hamishmack requested a review from michaelpj October 7, 2022 07:01
@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Oct 7, 2022
@hamishmack
Copy link
Collaborator Author

I moved rawFlake code into a stand alone mkFlake function while I needed to fix it up, I'll tackle the .flake', .flake and .shell in another PR.

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 7, 2022

It turns out it is nice to use system first in the hierarchy for cicero.  Also both hydra and cicero are ok with a deep hierarchy of attributes.
@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Oct 7, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 7, 2022

Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

❤️

@michaelpj
Copy link
Collaborator

Some of this is just review comments on the rawFlake code that I hadn't seen before, sorry!

@michaelpj
Copy link
Collaborator

These top-level functions I'm suggesting would be very useful for us in IntersectMBO/plutus#4877, where we're basically putting together our own flake, but all these pieces would be quite useful!

@hamishmack hamishmack changed the title Add hydraJobs.devShell and flatten hydraJobs Improve flake code Oct 10, 2022
Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

Looking great, just a bit more nitpicking!

Turns off code coverage by default.
Rename flattenChecks to mkFlakeChecks.
Adds flake packages to ciJobs and hydraJobs.
@hamishmack
Copy link
Collaborator Author

bors try

iohk-bors bot added a commit that referenced this pull request Oct 11, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 11, 2022

@hamishmack hamishmack merged commit a070082 into master Oct 11, 2022
@iohk-bors iohk-bors bot deleted the hkm/flake-improvements branch October 11, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants