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 Stax, Flex devices support, update SDK #13

Merged
merged 171 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
e41f2a0
Bump ledger_device_sdk
dfordivam Mar 27, 2024
b9de1df
Bump ledger-secure-sdk revs for nix
dfordivam Mar 27, 2024
ff77967
Bump ledger-crypto-helpers
dfordivam Mar 27, 2024
e18f678
Fix docker build, use master branch for link_wrap.sh
dfordivam Mar 27, 2024
f799cdf
Merge branch 'develop-sync' into develop
dfordivam Mar 27, 2024
59f80c6
Bump SDK
dfordivam Apr 11, 2024
8800e5f
Merge branch 'develop-sync' into develop
dfordivam Apr 11, 2024
7816318
Bump SDK to 1.18.1
dfordivam Oct 31, 2024
9b781f6
Bump alamgu
dfordivam Nov 7, 2024
24d9c3d
set rustc-link-search for libc
dfordivam Nov 7, 2024
307e1c7
Bump Cargo.lock
dfordivam Nov 7, 2024
6f26ce0
crate-hashes.json
dfordivam Nov 7, 2024
3384cfe
Update SDK thunks
dfordivam Nov 7, 2024
f73e11d
Update generated bindings
dfordivam Nov 7, 2024
b074cd3
Bump alamgu, with updated speculos and ragger
dfordivam Nov 13, 2024
f7ca98a
Bump ledger-prompts-ui
dfordivam Nov 13, 2024
e3a95dc
regen crate-hashes.json
dfordivam Nov 13, 2024
e4cc6f7
more .gitignore
dfordivam Nov 13, 2024
73ade79
Add ragger tests for sync APDU
dfordivam Nov 13, 2024
f536f77
Add run-ragger-tests.sh
dfordivam Nov 13, 2024
ce681d0
Merge branch 'develop-sync' into develop
dfordivam Nov 13, 2024
1420a43
Update ragger-tests for async APDU
dfordivam Nov 13, 2024
2c13dde
Bump Cargo.lock
dfordivam Nov 13, 2024
015cf74
add pytest_directory in ledger_app.toml
dfordivam Nov 14, 2024
4d16ce4
Remove nanos from ledger_app.toml
dfordivam Nov 14, 2024
a60a5d9
Use ragger_tests workflow, remove funtional_tests
dfordivam Nov 14, 2024
3a33850
Replace rustfmt workflow with coding style workflow from app boilerplate
dfordivam Nov 14, 2024
def8572
Simplify run-build-in-docker, remove nanos builds
dfordivam Nov 14, 2024
396d485
Merge branch 'develop-sync' into develop
dfordivam Nov 14, 2024
fbad1d5
Do chown on all files created by docker process
dfordivam Nov 14, 2024
9315f05
Merge branch 'develop-sync' into develop
dfordivam Nov 14, 2024
6c90d6d
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Nov 14, 2024
415c155
Bump Cargo.lock
dfordivam Nov 14, 2024
85d7c77
Bump version to 0.2.2
dfordivam Nov 14, 2024
6b2f962
Fix app mainmenu snapshots
dfordivam Nov 14, 2024
a8ac355
Fix app name in version test
dfordivam Nov 14, 2024
9988d6e
Fix pubkey tests
dfordivam Nov 14, 2024
1b636d4
Fix snapshot for pubkey tests
dfordivam Nov 14, 2024
ddfbdea
Remove sign_tx snapshots of alamgu example app
dfordivam Nov 14, 2024
004f6e1
Add signing test from ts-tests
dfordivam Nov 14, 2024
575827e
Add sign_tx test snapshots
dfordivam Nov 15, 2024
a5c1d17
Move prompts out from tx_parser, and show them only after inputs have…
dfordivam Nov 15, 2024
02c8722
Remove NavIns for avoiding 'Working...', as all prompts now happen af…
dfordivam Nov 15, 2024
0b12cf1
Add/fix snapshots for nanox
dfordivam Nov 15, 2024
d1a43cb
Move handle_apdu code out of main
dfordivam Nov 5, 2024
ab459bd
build-std alloc
dfordivam Nov 5, 2024
f53cfa7
Make SETTINGS better suited for nbgl use
dfordivam Nov 15, 2024
ad66c8e
Merge branch 'develop-sync' into develop
dfordivam Nov 15, 2024
02eb995
Fix handle_apdu module, and settings API use
dfordivam Nov 15, 2024
ff7e5c2
Move scroller* code to ui/nano module
dfordivam Nov 15, 2024
8db6d25
Merge branch 'develop-sync' into develop
dfordivam Nov 15, 2024
df6975e
Fix import, after bad merge
dfordivam Nov 15, 2024
7309fc4
Move scroller* out from implementation.rs
dfordivam Nov 15, 2024
d7805ed
cargo fmt, clippy fixes
dfordivam Nov 15, 2024
3e280e1
Merge branch 'develop-sync' into develop
dfordivam Nov 15, 2024
414f895
clippy fixes
dfordivam Nov 15, 2024
b84dc9c
Add stax/flex icons
dfordivam Nov 18, 2024
b295955
init ui/nbgl
dfordivam Nov 18, 2024
88a74b9
Ignore test-parsers APDU for stax/flex
dfordivam Nov 18, 2024
7da541f
Only use ledger-prompts-ui for s+,x
dfordivam Nov 18, 2024
c46e842
Merge branch 'develop-sync' into develop
dfordivam Nov 18, 2024
5ade16c
Use upstream SDK master for TARGET_JSON.json files
dfordivam Nov 18, 2024
ff3fb9d
Bump alamgu, with stax/flex targets
dfordivam Nov 18, 2024
fd3cf42
Bump alamgu
dfordivam Nov 20, 2024
f398bf1
stax,flex icon in toml
dfordivam Nov 20, 2024
1b9084d
Add stax,flex to supported devices
dfordivam Nov 20, 2024
33ee263
main_stax for sync APDUs
dfordivam Nov 20, 2024
0953963
nbgl ui
dfordivam Nov 20, 2024
7e0b70d
cargo fmt/clippy
dfordivam Nov 20, 2024
c1a1e57
Merge branch 'develop-sync' into develop
dfordivam Nov 20, 2024
5fddfb5
Add stax,flex in devices
dfordivam Nov 20, 2024
a5f2f6a
Merge branch 'develop-sync' into develop
dfordivam Nov 20, 2024
b4eaf1d
Bump Cargo.lock
dfordivam Nov 20, 2024
bf8030e
Fix main_nbgl for async
dfordivam Nov 20, 2024
05411fc
NYI warn_tx_not_recognized
dfordivam Nov 20, 2024
a5c02a1
Show review status after tx sign
dfordivam Nov 20, 2024
508bf1c
Add flex mainmenu screenshots
dfordivam Nov 20, 2024
863579f
Add flex public_key confirm test screenshots
dfordivam Nov 20, 2024
7684408
Sign tx test fixes for Flex
dfordivam Nov 20, 2024
da8d8e3
Sign_tx test screenshots for flex
dfordivam Nov 20, 2024
fdf1d35
Add stax test screenshots
dfordivam Nov 20, 2024
33e08a8
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Nov 21, 2024
a836926
add sui stax/flex icons
dfordivam Nov 21, 2024
c2ca281
replace sui stax/flex icons png with gif
dfordivam Nov 21, 2024
e9b56e1
Use sui icons
dfordivam Nov 21, 2024
f0c0282
Various fixes after merge of stencil
dfordivam Nov 21, 2024
28c0edc
Fix nbgl ui
dfordivam Nov 21, 2024
5fdfc54
make icons 16 color
dfordivam Nov 21, 2024
26f607c
Add flex stax to run-* scripts
dfordivam Nov 21, 2024
e18df21
Merge branch 'develop-sync' into develop
dfordivam Nov 21, 2024
f99887f
Fixes for async
dfordivam Nov 21, 2024
dea8f13
Fix nav for tx_blindsign, skip as UI nyi
dfordivam Nov 21, 2024
e52dc1f
Show confirmation on final screen of sign
dfordivam Nov 21, 2024
6927580
Fix app name
dfordivam Nov 21, 2024
1b447a4
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Nov 22, 2024
2f66dc6
Update authors to 'Obsidian Systems', as it gets shown in flex/stax UI
dfordivam Nov 22, 2024
6d50266
Remove flex/stax snapshots from alamgu-example
dfordivam Nov 22, 2024
df7a52e
Add flex snapshots
dfordivam Nov 22, 2024
10136dd
Fix test sign_tx_unknown_tx_rejected
dfordivam Nov 22, 2024
7aad451
Add stax snapshots
dfordivam Nov 22, 2024
154d793
Allow running pytest from inside of rust-app also
dfordivam Nov 22, 2024
55e0389
Fix cargo ledger command in run-docker-build.sh
dfordivam Nov 22, 2024
3d9b899
Merge branch 'develop-sync' into develop
dfordivam Nov 22, 2024
d0a9678
Rework UI; allow passing in menu to sign API, only refresh when needed
dfordivam Dec 16, 2024
b55cd2b
Enable test for blindsign disabled
dfordivam Dec 16, 2024
7f59444
Bump SDK
dfordivam Dec 16, 2024
9efd745
Merge branch 'develop-sync' into develop
dfordivam Dec 16, 2024
91cb594
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Dec 17, 2024
c862139
Fix version test
dfordivam Dec 17, 2024
a9ddfe2
Remove deadcode and unused files
dfordivam Dec 17, 2024
ecf4389
Add snapshot for stax test
dfordivam Dec 17, 2024
0a8710f
Merge branch 'develop-sync' into develop
dfordivam Dec 17, 2024
967ddec
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Dec 17, 2024
0d02890
Bump alamgu
dfordivam Dec 17, 2024
ae337a2
Fix gif's file mode
dfordivam Dec 17, 2024
23b4e83
Merge branch 'develop-sync' into develop
dfordivam Dec 17, 2024
686a83a
cargo-fmt
dfordivam Dec 18, 2024
18fed24
allow specifying pytest args in run-ragger-tests.sh
dfordivam Dec 19, 2024
f388edb
Remove 'with' from run_apdu_and_nav_tasks_concurrently, add debug sta…
dfordivam Dec 20, 2024
cbe272f
Add a timeout in toggle_blind_sign, and don't toggle in case of excep…
dfordivam Dec 20, 2024
16aa6a0
Capture screenshot of "Blind signing ahead" screenshot also
dfordivam Dec 20, 2024
abe4e18
Fix: re-raise exception, and don't run finally
dfordivam Dec 20, 2024
d761d58
Add stax snapshots
dfordivam Dec 20, 2024
c1a8bf1
Use separate test_case_name, remove use of snap_start_idx
dfordivam Dec 20, 2024
fbaf2dd
Merge branch 'develop-sync' into develop
dfordivam Dec 20, 2024
0d9ebdf
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Dec 20, 2024
7c7c1d2
Fix test_case_name, fix snapshots
dfordivam Dec 20, 2024
1a1535a
Remove unnecessary snapshot
dfordivam Dec 20, 2024
21219c6
Bump ledger-parser-combinators
dfordivam Dec 23, 2024
ca15c96
Remove ts-tests.rs
dfordivam Dec 23, 2024
14563f3
Remove ts-tests
dfordivam Dec 23, 2024
9a4534c
Remove speculos-wrapper
dfordivam Dec 23, 2024
6b0c8e8
Remove crab.gif, and nanos metadata section
dfordivam Dec 23, 2024
1ffc821
Remove mention of 'nanos' from README
dfordivam Dec 24, 2024
b0c77ea
Some fixes to README, mention new device support
dfordivam Dec 24, 2024
d8a34a8
Fixes to CONTRIBUTING, for new device and testing framework
dfordivam Dec 24, 2024
3916e2e
Bump alamgu, newer cargo2nix
dfordivam Dec 24, 2024
3415ada
Merge branch 'develop-sync' into develop
dfordivam Dec 24, 2024
1c7e589
Bump ledger-parser-combinators
dfordivam Dec 24, 2024
5ae7752
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Dec 24, 2024
a140362
Add a hack to prevent ICE on nightly-2024-11-22
dfordivam Dec 24, 2024
46df2e6
Specify concrete types for InterpParsers; fixes build error with 1.82
dfordivam Dec 30, 2024
1974eeb
Add target_os for resolving rust-lint warnings
dfordivam Dec 30, 2024
73bd9d0
Bump alamgu, use rust 1.82
dfordivam Dec 30, 2024
451e506
Rename .config/config -> ./config/config.toml
dfordivam Dec 30, 2024
8e6dd65
Merge branch 'develop-sync' into develop
dfordivam Dec 30, 2024
aa538d8
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Dec 30, 2024
d389b60
Bump alamgu, use nixpkgs unstable, rust 1.82
dfordivam Dec 30, 2024
45a2052
Merge branch 'develop-sync' into develop
dfordivam Jan 2, 2025
fc2f97f
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Jan 2, 2025
c6d5008
Merge remote-tracking branch 'lhq/develop' into develop
dfordivam Jan 2, 2025
00b89c3
Bump SDK
dfordivam Jan 6, 2025
e97efcd
Add a hack to fix build with nightly
dfordivam Jan 6, 2025
a10bc92
Remove str_internals, as it appears to be not needed anymore
dfordivam Jan 6, 2025
732adf0
Add "pending_review_screen" feature, fixes build warning
dfordivam Jan 6, 2025
9ee28b1
Merge branch 'develop-sync' into develop
dfordivam Jan 6, 2025
2d1f3e3
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Jan 6, 2025
6d97d6f
cargo-fmt code
dfordivam Jan 6, 2025
8bdd4bb
Suppress deadcode warning
dfordivam Jan 6, 2025
8eac7a1
Fix clippy warning; implied_bounds_in_impls
dfordivam Jan 6, 2025
6ea1827
Fix clippy warnings; missing_transmute_annotations
dfordivam Jan 6, 2025
b757d34
Fix clippy warnings; allow static_mut_refs
dfordivam Jan 6, 2025
01d99c5
Fix clippy warning
dfordivam Jan 6, 2025
2132c73
Merge branch 'develop-sync' into develop
dfordivam Jan 6, 2025
614bb89
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Jan 6, 2025
265e9f2
Use raw pointer to avoid static mut refs lint error
dfordivam Jan 7, 2025
cd18862
Merge branch 'develop-sync' into develop
dfordivam Jan 7, 2025
ce1ed53
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Jan 7, 2025
0b5d828
Revert "Use raw pointer to avoid static mut refs lint error"
dfordivam Jan 7, 2025
8a22ced
Merge branch 'develop-sync' into develop
dfordivam Jan 7, 2025
c1d4099
Merge remote-tracking branch 'stencil/develop' into develop
dfordivam Jan 7, 2025
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
5 changes: 1 addition & 4 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[unstable]
build-std = ["core"]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-mem"]

[target.nanosplus]
Expand All @@ -8,23 +8,20 @@ rustflags = [
"-C", "save-temps", # Fixes incremental builds by keeping .bc and .ll files
"-C", "embed-bitcode",
]
runner = "./speculos-wrapper -m nanosp "

[target.nanos]
rustflags = [
"-C", "codegen-units=1",
"-C", "save-temps", # Fixes incremental builds by keeping .bc and .ll files
"-C", "embed-bitcode",
]
runner = "./speculos-wrapper -m nanos "

[target.nanox]
rustflags = [
"-C", "codegen-units=1",
"-C", "save-temps", # Fixes incremental builds by keeping .bc and .ll files
"-C", "embed-bitcode",
]
runner = "./speculos-wrapper -m nanox "

[alias]
tt = "test --features extra_debug"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
upload_app_binaries_artifact: "compiled_app_binaries"
builder: ledger-app-builder

functional_tests:
name: Run tests
ragger_tests:
name: Run ragger tests using the reusable workflow
needs: build_application
uses: ./.github/workflows/functional_tests.yml
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: "compiled_app_binaries"
22 changes: 22 additions & 0 deletions .github/workflows/coding_style_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Run coding style check

# This workflow will run linting checks to ensure a level of code quality among all Ledger applications.
#
# The presence of this workflow is mandatory as a minimal level of linting is required.

on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
- develop-sync
pull_request:

jobs:
check_linting:
name: Check linting using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1
with:
source: './rust-app/src'
110 changes: 0 additions & 110 deletions .github/workflows/functional_tests.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Cargo.nix

result
result-*

__pycache__
snapshots-tmp
17 changes: 8 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ These dependencies are needed:

Additionally for testing these are needed:

- Node
- Yarn
- Python3
- [Speculos] the official Ledger emulator
- Ragger, a library to run tests on Speculos emulator

[Speculos]: https://github.com/ledgerHQ/speculos

Expand All @@ -27,12 +27,13 @@ The easiest way to get all these dependencies is with Nix:
```bash
nix-shell -A $DEVICE.rustShell
cd rust-app/
cargo ledger build -l $DEVICE
cargo build --release --target=$TARGET_JSON
````
where `DEVICE` is one of
- `nanos` for Nano S
- `nanox` for Nano X
- `nanosplus` for Nano S+
- `flex`, for Flex
- `stax`, for Stax

### Getting a development environment without Nix

Expand All @@ -54,12 +55,10 @@ in order to regenerate this file and keep it up to date.

## Running automated tests with Speculos

Using Nix, from the root level of this repo, run:
Using Nix, from the root level of this repo, run the following script to run tests for all devices

```bash
nix-shell -A $DEVICE.rustShell
cd rust-app/
cargo test --target=$TARGET_JSON
./run-ragger-tests.sh
```

## Deploying development builds to real hardware
Expand All @@ -70,7 +69,7 @@ Nix will always track the latest changes, freshly rebuilding components as neede
That said, it is also possible to use Cargo build.
This useful for the quickest "debug loop".

The [cargo-ledger](https://github.com/LedgerHQ/cargo-ledger.git) builds, outputs a `hex` file and a manifest file for `ledgerctl`, and loads it on a device in a single `cargo-ledger ledger -l nanos` command in the rust-app folder within app directory.
The [cargo-ledger](https://github.com/LedgerHQ/cargo-ledger.git) builds, outputs a `hex` file and a manifest file for `ledgerctl`, and loads it on a device in a single `cargo-ledger ledger -l nanosplus` command in the rust-app folder within app directory.

(You do not need to install `cargo-ledger` if you are using the nix-provided development shell, as it provides it.)

Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Written using [Alamgu](https://github.com/alamgu/).
## Device Compatability

This application is compatible with
- Ledger Nano S, running firmware 2.1.0 and above
- Ledger Nano S+, running firmware 1.1.0
- Ledger Nano S+
- Ledger Nano X
- Ledger Flex
- Ledger Stax

Note: Compatibility with Ledger Nano X is only possible to check on [Speculos](https://github.com/ledgerHQ/speculos/) emulator,
because the Nano X does not support side-loading apps under development.
Expand Down Expand Up @@ -74,9 +75,10 @@ Finally, run the following command to load the app on your device:
nix --extra-experimental-features nix-command run -f . $DEVICE.loadApp
```
where `DEVICE` is one of
- `nanos`, for Nano S
- `nanox`, for Nano X
- `nanosplus`, for Nano S+
- `flex`, for Flex
- `stax`, for Stax

The app will be downloaded (if you have our Nix cache enabled) and/or freshly built as needed.

Expand All @@ -97,9 +99,10 @@ To build one, run:
nix-build -A $DEVICE.tarball
```
where `DEVICE` is one of
- `nanos`, for Nano S
- `nanox`, for Nano X
- `nanosplus`, for Nano S+
- `flex`, for Flex
- `stax`, for Stax

The last line printed out will be the path of the tarball.

Expand Down Expand Up @@ -141,9 +144,10 @@ To use this tool using Nix, from the root level of this repo, run this command t
nix-shell -A $DEVICE.appShell
```
where `DEVICE` is one of
- `nanos`, for Nano S
- `nanox`, for Nano X
- `nanosplus`, for Nano S+
- `flex`, for Flex
- `stax`, for Stax

Then, one can use `generic-cli` like this:

Expand Down
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ rec {
nanos = appForDevice "nanos";
nanosplus = appForDevice "nanosplus";
nanox = appForDevice "nanox";
flex = appForDevice "flex";
stax = appForDevice "stax";

cargoFmtCheck = pkgs.stdenv.mkDerivation {
pname = "cargo-fmt-${appName}";
Expand Down
4 changes: 2 additions & 2 deletions dep/alamgu/github.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"repo": "alamgu",
"branch": "develop",
"private": false,
"rev": "f41eb60cb2b5145b4948c51898062911c342db6b",
"sha256": "16n2b0irpkgjzp5mrl6vxza0bw7p5c6bmgbfmynbzbcyij5arhnh"
"rev": "7cb39c91dfc9af8c9bc499712df68efb49f694f3",
"sha256": "1b6ndhk24dj6vmyg3qvggfx4zyd90lfdda2qq4g4nf26wi85k6zn"
}
5 changes: 4 additions & 1 deletion dep/alamgu/thunk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import <nixpkgs> {}).fetchFromGitHub {
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
Expand Down
10 changes: 5 additions & 5 deletions dep/ledger-nanos-sdk/github.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"owner": "alamgu",
"repo": "ledger-nanos-sdk",
"branch": "alamgu-branch",
"owner": "LedgerHQ",
"repo": "ledger-device-rust-sdk",
"branch": "master",
"private": false,
"rev": "52edd548d7456a844b3919969b330e1e21b8e2fa",
"sha256": "1dnlav7883wi7y7m4lhjj9gx4nypa99iwa2acnbydq55pdd1mn6y"
"rev": "e9f89626ea509528f29df74ef775c1a989693450",
"sha256": "0n4v9ibwnkp22dmsdsiyz4hfd7jb83ccfjsv25vbmlcir4s5ppg0"
}
5 changes: 4 additions & 1 deletion dep/ledger-nanos-sdk/thunk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import <nixpkgs> {}).fetchFromGitHub {
} else (import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
}) {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
Expand Down
6 changes: 3 additions & 3 deletions dep/ledger-secure-sdk-nanos/github.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"owner": "LedgerHQ",
"repo": "nanos-secure-sdk",
"repo": "ledger-secure-sdk",
"private": false,
"rev": "62dd047774b5e8a6b4e6158b493ee029453b5bae",
"sha256": "0y0czagzcrhjb5sfwzf6z2alk6227r3j3pgfc8aasg46zxisfrrz"
"rev": "36dd2110ad6349ab84da7bf9d33ecba5df9c4a19",
"sha256": "08icfqc82xxhzsy3r3zzbljas9v9fyjw6fcr3cgw7a8h7ybj2f4s"
}
4 changes: 2 additions & 2 deletions dep/ledger-secure-sdk-nanosplus/github.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"owner": "LedgerHQ",
"repo": "ledger-secure-sdk",
"private": false,
"rev": "48bb8d493548f840ddd261bbe60930f3f5966e7b",
"sha256": "1hgxygkp7qm46fpvd7mkiqzzaz82w510mfk7x4hmw3prkbvrlm3b"
"rev": "cfb10841a1044253190ac0c4f41d43414867fdad",
"sha256": "1kag9lchawp7ngl13wh077cbywm16p1qr9j5sdkv6y2f50wscx3g"
}
Loading
Loading