-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
electrum: add support for LedgerHQ hardware wallet #30347
Conversation
Could this be backported to 17.09 as well? Thanks. |
meta = with stdenv.lib; { | ||
description = "Python communication library for Ledger Hardware Wallet products"; | ||
homepage = "https://github.com/LedgerHQ/btchip-python"; | ||
license = licenses.apache2; |
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.
Use licenses.asl20
. You can test meta eval by nix-instantiate --eval --strict -A foo.meta
.
Is it necessary to add this plugin for each electrum-instance even if the majority won't use it? I feel quite uncomfortable to add unnecessary plugins in a Bitcoin-client. |
@joachifm fixed. @geistesk I don't know. An argument can be made in favor of having a fully functional Electrum out of the box. |
@geistesk also, the Electrum we ship in nixpkgs already supports the Trezor hardware wallet. |
sha256 = "16g9l3rpxpvvkdx08mgy0ligvsfcpzdrh4hplj104cpprrbsqd6v"; | ||
}; | ||
|
||
buildInputs = [ hidapi pyscard ecdsa ]; |
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.
these are not needed during runtime?
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.
@FRidh there are definitely references to these three libraries in the btchip
code.
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.
in order for Python modules to find each other, they need to be added as propagatedBuildInputs
.
I'd be fine with making plugins a parameter to the package expression but we can do that in a separate feature. |
@k0001 I fully understand the benefits of a "batteries-included" client. However, on the other side there will be a lot of additional code with possible security-flows in a Bitcoin-client (or any software at all). That's why I'd love to see an overrideable list of possible plugins. @joachifm If we are going to introduce this feature later, we will probably end up with some "legacy"-dependencies. But I'd like to look into this subject and eventually create a PR. |
Is this still on hold ? What work needs to be done for this to get merged ? |
Seems to me that @FRidh's feedback has not been adressed |
Motivation for this change
Adding support for LedgerHQ hardware wallet in electrum by adding a dependency on
btchip
.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)