Closed mia0x75 closed 11 months ago
Cargo is installed and added to PATH during do_build
with rustup-init
as the nightly version is required to build eww.
export RUSTUP_HOME=${wrksrc}/rustup
rustup-init --default-toolchain nightly -y
export PATH=${RUSTUP_HOME}/toolchains/nightly-x86_64-unknown-linux-gnu/bin:$PATH
By the looks of it from your log the problem is I wrote it to export nightly-x86_64-unknown-linux-gnu
to path, but musl uses nightly-x86_64-unknown-linux-musl
, I'll try adding a check for this.
Also, chances are it will fail to build on other architectures because it's hardcoded to x86_64.
Changed it to use the XBPS_RUST_TARGET
environment variable which should fix it.