Cannot build derivation with buildRustPackage

For some reason, CargoHash is not found by itself and building continues endlessly, even if you substitute the correct one it will not help

I tried to build this package on a virtual machine and it worked

If it can help then here is my configuration

We’d need to see the package, rather :slight_smile:

2 Likes

Other people have already tried it and it worked for everyone

{
  lib,
  fetchFromGitHub,
  rustPlatform,
}:

rustPlatform.buildRustPackage rec {
  pname = "rawst";
  version = "0.8.1";

  src = fetchFromGitHub {
    owner = "Jupiee";
    repo = pname;
    rev = version;
    hash = "sha256-+uhE80XoZyMBV+nmlP+C5DfoB+z4tyK69XGsuALxROs=";
  };

  RUSTC_BOOTSTRAP = true;

  cargoHash = "sha256-wS1dR6r3/4sg4DCMR8QZjbHgiSEhuu/v4MqJ6LxEKtY=";
}