Open zetashift opened 1 year ago
I see there was an update for the Nix flake, but currently with a fresh clone, getting the following error/warning:
~/d/erg/erg main ❱ nix build
error: builder for '/nix/store/sr6frjpwk8bvn7a4gci22yk0qsid6l2j-erg.drv' failed with exit code 101;
last 10 log lines:
> Executing cargoBuildHook
> ++ env CC_aarch64-apple-darwin=/nix/store/b9bh3z78rqff14bf0fd78xb07b5cnwdw-clang-wrapper-11.1.0/bin/cc CXX_aarch64-apple-darwin=/nix/store/b9bh3z78rqff14bf0fd78xb07b5cnwdw-clang-wrapper-11.1.0/bin/c++ CC_aarch64-apple-darwin=/nix/store/b9bh3z78rqff14bf0fd78xb07b5cnwdw-clang-wrapper-11.1.0/bin/cc CXX_aarch64-apple-darwin=/nix/store/b9bh3z78rqff14bf0fd78xb07b5cnwdw-clang-wrapper-11.1.0/bin/c++ cargo build -j 10 --target aarch64-apple-darwin --frozen --release
> error: failed to parse manifest at `/private/tmp/nix-build-erg.drv-0/nqa6wd2nk4hfxi7z1rmk9ird5h0m41np-source/Cargo.toml`
>
> Caused by:
> feature `workspace-inheritance` is required
>
> The package requires the Cargo feature called `workspace-inheritance`, but that feature is not stabilized in this version of Cargo (1.62.0).
> Consider adding `cargo-features = ["workspace-inheritance"]` to the top of Cargo.toml (above the [package] table) to tell Cargo you are opting in to use this unstable feature.
> See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#workspace-inheritance for more information about the status of this feature.
For full logs, run 'nix log /nix/store/sr6frjpwk8bvn7a4gci22yk0qsid6l2j-erg.drv'.
Yes, it looks like Nix are using an old version of cargo/rustc. I'm looking into how to update the dependencies now (I wasn't the one who added the Nix installing script).
I tried doing fixing it as well, but I'm clueless in Rust land :P.
Usually nix flake update
does things for me
Describe the bug?
The docs mention you can use Nix (flakes) to build the project, but cloning the repo and running
nix build
fails with(without full stacktrace):Reproducible code
If you have direnv and nix-direnv installed (I do):
And running the build:
Expected result
A successful compilation.
Actual result
Additional context
No response
Erg version
main branch
Python version
None
OS
macOS 13 (Ventura)