Dependency error while deriving Rust package

Hey everyone! I’m trying to derive this protoc-gen-ts (as a package dependency to my devShell). I’ve tried to use rustPlatform.buildRustPackage and crane but both are failing with the same error:

error: failed to load source for dependency `protobuf-parse`

Caused by:
  Unable to update /private/tmp/nix-build-protoc_gen_ts-deps-0.1.0.drv-0/source/target/patch/protobuf-parse-3.3.0

Caused by:
  failed to read `/private/tmp/nix-build-protoc_gen_ts-deps-0.1.0.drv-0/source/target/patch/protobuf-parse-3.3.0/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

I couldn’t find much more information why this dependency is missing (it’s defined in the cargo.lock file) and I’m lost on how to proceed. Any directions on how to fix it?

Hi! Can you post what derivation gives you this error? It is hard to debug without knowing what you tried.