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

Add instructions how to get onlykey-cli running on NixOs #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,33 @@ $ sudo pacman -Sy git python2-setuptools python2 libusb python2-pip
$ pip install onlykey
```

### NixOS Install with dependencies

#### First time

NB: shell prompts are approximative

```
$ git clone --depth 1 https://github.com/trustcrypto/python-onlykey.git
$ cd python-onlykey
$ git submodule init
$ git submodule update
$ nix-shell -p python2.pkgs.{pip,virtualenv,ed25519,cython,six,hidapi,ecdsa,aenum,wcwidth}
# Not prompt_toolkit, on my NixOS 18.09.2390.40e716b92a7 (Jellyfish), prompt_toolkit=1.0.15
# but onlykey wants prompt_toolkit > 2
[nix-shell]$ virtualenv --system-site-packages build
[nix-shell]$ source build/bin/activate
(build) [nix-shell]$ pip install 'prompt_toolkit>2'
```

#### After that

You can run the tool with

```
$ nix-shell -p python2.pkgs.{pip,virtualenv,ed25519,cython,six,hidapi,ecdsa,aenum,wcwidth} --command 'cd python-onlykey && source build/bin/activate ; cd onlykey && python -c "import cli; cli.main()"'
```

### FreeBSD Install with dependencies

See forum thread - https://groups.google.com/forum/#!category-topic/onlykey/new-features-and-feature-requests/CEYwdXjB508
Expand Down