Giter Site home page Giter Site logo

Comments (4)

SergioGasquez avatar SergioGasquez commented on May 28, 2024 1

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.

frantisekhanzlikbl avatar frantisekhanzlikbl commented on May 28, 2024 1

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.

SergioGasquez avatar SergioGasquez commented on May 28, 2024

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.

joshuachp avatar joshuachp commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.