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

Use Holonix v3 #220

Merged
merged 9 commits into from
Jul 15, 2024
Merged

Use Holonix v3 #220

merged 9 commits into from
Jul 15, 2024

Conversation

ThetaSinner
Copy link
Member

No description provided.

@ThetaSinner ThetaSinner requested a review from jost-s July 12, 2024 18:49
flake.nix Outdated
Comment on lines 30 to 35
inputsFrom = [ inputs'.holonix.devShells ];
packages = (with inputs'.holonix.packages; [
# add packages from Holonix
holochain
lair-keystore
rust
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 if you include devShells, all packages from holonix are already included https://github.com/holochain/holonix/blob/main/flake.nix#L284-L292. Adding packages separately is redundant.

Copy link
Member Author

@ThetaSinner ThetaSinner Jul 15, 2024

Choose a reason for hiding this comment

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

It's only supposed to copy build inputs, not packages -> https://ryantm.github.io/nixpkgs/builders/special/mkshell/#sec-pkgs-mkShell-attributes

We ran into this with the template flake too but I'm wondering why this ever worked... Going to have a look at the previous holonix shell and make this line needs to be removed here.

I want it to work in a way where we can list packages because not downloading hc-launch and scaffolding where we don't need them saves quite a bit of bandwidth

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, I see. We should only need holochain, lair-keystore and rust as packages for the Tryorama dev shell. Is there anything else you're looking to include in it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I honestly can't tell from that shells file, there's so much mapping around of packages...

But what this feature should be for is importing build dependencies from a package. So if we import something that needs openssl to build, then using inputsFrom with that something would include openssl in the dev shell.

Copy link
Member Author

Choose a reason for hiding this comment

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

Alright, I see. We should only need holochain, lair-keystore and rust as packages for the Tryorama dev shell. Is there anything else you're looking to include in it?

Nope, just what you listed, I've removed the inputsFrom now because you've made me realise it wasn't doing anything :)

flake.nix Show resolved Hide resolved
Copy link
Contributor

@jost-s jost-s left a comment

Choose a reason for hiding this comment

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

Awesome!

@ThetaSinner ThetaSinner merged commit 99273a1 into develop Jul 15, 2024
2 checks passed
@ThetaSinner ThetaSinner deleted the use-holonix-v3 branch July 15, 2024 19:32
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