Skip to content

Commit 5f5d79f

Browse files
committed
Add Rust App Deps
1 parent 4f9ba74 commit 5f5d79f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get update && apt-get upgrade -qy && apt-get install -qy \
1111
clang \
1212
clang-tools \
1313
clang-format \
14+
llvm \
1415
lld \
1516
cmake \
1617
curl \
@@ -22,10 +23,8 @@ RUN apt-get update && apt-get upgrade -qy && apt-get install -qy \
2223
libcmocka-dev \
2324
make \
2425
protobuf-compiler \
25-
python-is-python3 \
2626
python3 \
2727
python3-pip \
28-
python3-pyqt5 \
2928
nodejs \
3029
npm \
3130
fish \
@@ -95,6 +94,14 @@ ENV BOLOS_SDK=$NANOS_SDK
9594

9695
RUN pip3 install --no-cache-dir --break-system-packages ledgerblue speculos==0.9.0
9796

97+
# Rust
98+
ARG RUST_VERSION=nightly-2023-11-10
99+
100+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain "$RUST_VERSION" -y
101+
ENV PATH=$PATH:/root/.cargo/bin
102+
RUN rustup component add rust-src --toolchain "$RUST_VERSION"
103+
RUN cargo install cargo-ledger && cargo ledger setup
104+
98105
# Switch back to dialog for any ad-hoc use of apt-get
99106
ENV DEBIAN_FRONTEND=
100107

0 commit comments

Comments
 (0)