You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ The `nix/` folder contains helper scripts for working with the ledger via Nix.
8
8
Use `./nix/install.sh` to install the apps onto the ledger using Nix.
9
9
10
10
### Developing
11
-
Use `nix/env.sh <s or x> to enter a shell where you can run `make` and it will just work. You can also pass a command instead, e.g. `nix/env.sh s make clean`.
11
+
Use `nix/env.sh <s or x> to enter a shell where you can run `make` and it will just work. You can also pass a command instead, e.g. `nix/env.sh s --run "make clean SHELL=bash"`.
12
12
13
-
For development, use `nix/watch.sh s make APP=<tezos_baking|tezos_wallet>` to incrementally build on every change. Be sure to `nix/env.sh s make clean` if you start watching a different `APP`.
13
+
For development, use `nix/watch.sh s make APP=<tezos_baking|tezos_wallet>` to incrementally build on every change. Be sure to `nix/env.sh s --run "make clean SHELL=bash"` if you start watching a different `APP`.
14
14
15
15
### Building
16
16
To do a full Nix build run `nix/build.sh`. You can pass `nix-build` arguments to this to build specific attributes, e.g. `nix/build.sh -A nano.s.wallet`.
then your installation of `tezos-client` was built with an older version of HIDAPI that doesn't work well with macOS (see [#30](https://github.com/obsidiansystems/ledger-app-tezos/issues/30)).
993
+
994
+
To fix this you need to get the yet-unreleased fixes from the [HIDAPI library](https://github.com/signal11/hidapi) and rebuild `tezos-client`.
995
+
996
+
If you got HIDAPI from Homebrew, you can update to the `master` branch of HIDAPI like this:
997
+
998
+
```shell
999
+
$ brew install hidapi --HEAD
1000
+
```
1001
+
1002
+
Then start a full rebuild of `tezos-client` with HIDAPI's `master` branch:
1003
+
1004
+
```shell
1005
+
$ brew unlink hidapi # remove the current one
1006
+
$ brew install autoconf automake libtool # Just keep installing stuff until the following command succeeds:
1007
+
$ brew install hidapi --HEAD
1008
+
```
1009
+
1010
+
Finally, rebuild `ocaml-hidapi` with Tezos. In the `tezos` repository:
1011
+
1012
+
```shell
1013
+
$ opam reinstall hidapi
1014
+
$ make all build-test
1015
+
$ ./tezos-client list connected ledgers # should now work consistently
1016
+
```
1017
+
1018
+
Note that you may still see warnings similar to `Unexpected sequence number (expected 0, got 191)` even after this update. The reason is that there is a separate, more cosmetic, issue in `tezos-client` itself which has already been fixed but may not be in your branch yet (see the [merge request](https://gitlab.com/tezos/tezos/merge_requests/600)).
1019
+
984
1020
### Contact Us
985
1021
You can email us at [email protected] and request to join our Slack.
986
1022
We have several channels about baking and one specifically for our Ledger applications.
0 commit comments