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
morph: add openssh to PATH #78107
morph: add openssh to PATH #78107
Conversation
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.
openssh is not a build dependency of morph, thus this change will not fix the issue at hand. We either need to put openssh on morph' runtime PATH, or loosen the dependency check at morph startup (since openssh is really not needed at all for the morph build
-subcommand.)
@johanot is right - and I think morph should work fine for actions not requiring ssh (like |
Aaah, right, i'm closing this PR then. Sorry for the fuss! Just for the reference: DBCDK/morph#102 |
Until this is fixed upstream, we might want to add |
This won't magically add See how this is done with |
Yeah well. We have to agree on what we are actually fixing though? #78106 gives the example of I kinda feel that morph shouldn't be nixpkgs-wrapped with openssh, since it is possible to use morph as a standalone build tool, without ssh. But i do agree that |
If a program requires a dependency to work (in any use case), we as If that dependency is too large, we can split it into different derivation (example that comes in mind is a server application with GUI support, such as bitcoin{,d}), but in case of morph the majority of use cases are going to use deploy anyway, so I feel it is okay to ship it with openssh as a dependency. |
FWIW, as someone that was trying out Very +1 to wrapping the binary. |
Right, we are using morph with Trezor to hold our ssh keys and I'm not sure if the gossh will support that. |
Motivation for this change
Fixes #78106
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)