Comments (4)
Just created #161 with @joshuachp patch (thanks for sharing it!), I did some testing and everything was working for me. Please, @frantisekhanzlikbl can you confirm that this fixes your issue?
cargo install espup --git https://github.com/SergioGasquez/espup --branch fix/bash
espup install
from espup.
Hey, so sorry for taking forever to reply. I was using the ESP for a short-lived school project, so I haven't had the chance to try it again yet. I unfortunately can't test the fix ATM, but it looks exactly like what I've done locally to make it work, which did fix the issue.
Thanks so much for working on this!
from espup.
Hi!
Sorry for taking so long to reply. I've just had a look at the issue, but for some reason, the cmd!
macro does not work without a bash path. I've improved the current state a bit: main...fix/bash-path
But still not ideal, I've also seen that you did some testing, did you have more success than me?
from espup.
Hi, I manage to run espup on nix with the following nix package:
{ pkgs
, lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "espup";
version = "0.2.6";
patches = [ ./bash.patch ];
src = fetchCrate {
inherit pname version;
sha256 = "sha256-+G/0Eo1/IULoa3EQmn2CYUzqyQ2iXnFtyUBfzwJNMp4=";
};
cargoSha256 = "sha256-lmyeK3Wj/q1uNw4iROuaHkjfBxvXtktK3e3y5GytbXg=";
nativeBuildInputs = with pkgs;[
pkg-config
perl
];
buildInputs = with pkgs; [
openssl
];
# A test will fail since will try to make a http request
doCheck = false;
meta = with lib; {
description = "Tool for installing and maintaining ESP Rust ecosystem.";
homepage = "https://github.com/esp-rs/espup";
license = with licenses; [ asl20 mit ];
};
}
The patch needed was the following: bash.patch
Hope this helps, it would be great to make it work on NixOS.
EDIT: This won't work since the installation will later fail while installing the rust toolchian
from espup.
Related Issues (20)
- Temporary directory doesn't seem to be cleaned after installation / update HOT 5
- Compiling it on macOS-arm64 HOT 3
- espup uses large amounts of space in $TMPDIR HOT 6
- If rustup toolchain dir includes non-directory entries, `espup install` panics HOT 4
- On CI systems running in AWS, `XtensaRust::parse_version()` repeatedly times out and panics espup HOT 2
- `espup install` detects and re-uses existing gcc, but always re-installs rust toolchain when it fails to execute it HOT 14
- Add CHANGELOG
- Installation fails when providing an incomplete Xtensa Rust
- Installation fails when $RUSTUP_HOME/tmp is not created
- Update GCC
- Fix export script log typo
- ESP32 and lv-binding-rs does not build HOT 5
- espup installs potential riscv targets that are never used HOT 2
- `skip_version_parse` argument should require `toolchain_version`
- Check for component on `install` and `update`
- If there is a minified LLVM installation `--extended-llvm` doesn't install the full LLVM HOT 1
- Install python3 and python3-venv. HOT 3
- Add support for ESP32-P4
- cargo install espup doesn't work on M1 HOT 1
- Installation duplicates contents of PATH environment variable on Windows HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espup.