-
Notifications
You must be signed in to change notification settings - Fork 2
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
Allow Rust to be provided for app development #52
Allow Rust to be provided for app development #52
Conversation
@@ -21,8 +21,6 @@ | |||
formatter = pkgs.nixpkgs-fmt; | |||
|
|||
devShells.default = pkgs.mkShell { | |||
inputsFrom = [ inputs'.holonix.devShells ]; |
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.
This was wrong and should have been
- inputsFrom = [ inputs'.holonix.devShells ];
+ inputsFrom = [ inputs'.holonix.devShells.default ];
When you correct this, you end up pulling in everything from the base shell twice because we're also specifying packages. So we need to choose between these two options.
The idea was to keep this Holonix flexible, so I prefer removing the inputsFrom
so that people can choose what to include in their 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.
I see, will remove this from the scaffolded nix flake, had actually modified it to the snippet below. In ref to holochain/scaffolding#365
inputsFrom = [ inputs'.holonix.devShells.default ];
templates/rust-stable/flake.nix
Outdated
in | ||
pkgs.mkShell { | ||
packages = [ | ||
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.
Provides a locally-defined Rust instead of the one from Holonix
templates/rust-stable/flake.nix
Outdated
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.
Name this folder custom-rust
and the custom
one custom-holochain
?
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.
That'd be a nice pattern, done!
Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>
77e9754
to
bca5e49
Compare
No description provided.