-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use Holonix v3 #220
Conversation
flake.nix
Outdated
inputsFrom = [ inputs'.holonix.devShells ]; | ||
packages = (with inputs'.holonix.packages; [ | ||
# add packages from Holonix | ||
holochain | ||
lair-keystore | ||
rust |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
No description provided.