Trying to update the wasmtime package, I’m hitting an issue with the build script complaining that a submodule’s Cargo.toml
doesn’t exist:
❯ nix-build -A wasmtime -K
these derivations will be built:
/nix/store/xf18l83v6aff4q1zq77brk3qb8cnmk17-wasmtime-20190521-vendor.drv
/nix/store/wf5czc954zpw68vsijw69fyrd62bflcn-wasmtime-20190521.drv
building '/nix/store/xf18l83v6aff4q1zq77brk3qb8cnmk17-wasmtime-20190521-vendor.drv'...
unpacking sources
unpacking source archive /nix/store/yq7pldkm5422f70d0704zqmx77nvha1a-source
source root is source
patching sources
applying patch /nix/store/vbsca57gwcjamcjwbbxncp0f44b7159c-cargo-lock.patch
patching file Cargo.lock
installing
error: failed to read `/build/source/lightbeam/Cargo.toml`
Caused by:
No such file or directory (os error 2)
Traceback (most recent call last):
File "/nix/store/bmv13g410xz281bcclp5n5mphpgd5xgz-cargo-vendor-normalise/bin/.cargo-vendor-normalise-wrapped", line 42, in <module>
main()
File "/nix/store/bmv13g410xz281bcclp5n5mphpgd5xgz-cargo-vendor-normalise/bin/.cargo-vendor-normalise-wrapped", line 17, in main
assert list(data.keys()) == ["source"]
AssertionError
note: keeping build directory '/tmp/nix-build-wasmtime-20190521-vendor.drv-6'
builder for '/nix/store/xf18l83v6aff4q1zq77brk3qb8cnmk17-wasmtime-20190521-vendor.drv' failed with exit code 1
cannot build derivation '/nix/store/wf5czc954zpw68vsijw69fyrd62bflcn-wasmtime-20190521.drv': 1 dependencies couldn't be built
error: build of '/nix/store/wf5czc954zpw68vsijw69fyrd62bflcn-wasmtime-20190521.drv' failed
If I change the package to use fetchgit
instead, things work as expected. There seems to be a weird interaction between rustPlatform.buildRustPackage
and fetchFromGitHub
- as if I try to use mkDerivation
directly, fetchFromGitHub
works as expected.
Is this a known issue?