Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building ashpd fails: could not find zvariant #361

Open
FireFragment opened this issue Sep 20, 2024 · 0 comments
Open

Building ashpd fails: could not find zvariant #361

FireFragment opened this issue Sep 20, 2024 · 0 comments

Comments

@FireFragment
Copy link

When building the ashpd crate with crate2nix, build fails with many errors similar to this one:

error[E0433]: failed to resolve: could not find `zvariant` in the list of imported crates
  --> src/desktop/account.rs:30:10
   |
30 | #[derive(SerializeDict, Type, Debug, Default)]
   |          ^^^^^^^^^^^^^ could not find `zvariant` in the list of imported crates
   |
   = note: this error originates in the derive macro `SerializeDict` (in Nightly builds, run with -Z macro-backtrace for more info)

I've created repo with minimal reproducible example here: https://github.com/FireFragment/crate2nix-bug-ashpd

To reproduce

Just run this command:

nix build github:FireFragment/crate2nix-bug-ashpd                                     
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant