Closed C0D3-M4513R closed 8 months ago
I am also seeing this. In my case, I'm generating Cargo.nix from a workspace Cargo.toml and Cargo.lock file. The problem still occurs even when I filter down to just a single project in my workspace. Here's my repo, with a flake and a Cargo.toml: savanni/monorepo - monorepo - gitea: Gitea Service
I don't have a previous Cargo.nix, as I've been using cargo and shell scripts recently.
Do you have the most recent crate2nix
?
I cannot reproduce with the version from master
~/thirdparty/DexProtectOscRS main 23:18:09
❯ nix run github:nix-community/crate2nix -- generate
Generated ./Cargo.nix successfully.
(but I run into other problems that I will not debug right now on Mac Os at least)
/nix/store/6hl2zviscn0y7846zd0hv6wb9aqlrmaj-rust_objc-sys-0.2.0-beta.2-lib/env: line 1: export: `-fobjc-arc-exceptions': not a valid identifier
/nix/store/6hl2zviscn0y7846zd0hv6wb9aqlrmaj-rust_objc-sys-0.2.0-beta.2-lib/env: line 1: export: `-fobjc-exceptions': not a valid identifier
/nix/store/6hl2zviscn0y7846zd0hv6wb9aqlrmaj-rust_objc-sys-0.2.0-beta.2-lib/env: line 1: export: `-fobjc-runtime': not a valid identifier
/nix/store/ncnpn13v4h7qa8i9l5bbrd52wybj1irl-stdenv-darwin/setup: line 1681: pop_var_context: head of shell_variables not a function context
@savannidgerinel also seems to work (i.e. not panic during render) for your repo on my system...
I'll close for now... Feel very free to reopen if you can reproduce with the version from master.
Huh can confirm. It works perfectly now... wtf?
@savannidgerinel also seems to work (i.e. not panic during render) for your repo on my system...
I'll close for now... Feel very free to reopen if you can reproduce with the version from master.
Oh.
So, I was using the edition of crate2nix from pkgs-23.05 and mis-reading other parts of my flake.nix where I thought I was pulling crate2nix directly from here.
No worries :)
Reproduction:
git clone https://github.com/C0D3-M4513R/DexProtectOscRS.git
cd DexProtectOscRS
RUST_BACKTRACE=1 crate2nix generate