Packaging clippy for Guix

I am trying to package clippy for Guix, but one of clippy's tests fails with the following error:

thread 'compile_test' panicked at 'Found multiple rlibs for crate `serde`: `"/tmp/guix-build-rust-1.51.0.drv-0/rustc-1.51.0-src/build/x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/deps/libserde-bc87547e40e4d092.rlib"` and `"/tmp/guix-build-rust-1.51.0.drv-0/rustc-1.51.0-src/build/x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/deps/libserde-c3292fbf7f3001d2.rlib"', src/tools/clippy/tests/

The commands leading to this error are:

./ build
./ build src/tools/cargo
./ build src/tools/clippy
./ build src/tools/rustfmt
./ test -vv
./ test src/tools/cargo
./ test src/tools/clippy

How can I fix this error?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.