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/compile-test.rs:51:25

The commands leading to this error are:

./x.py build
./x.py build src/tools/cargo
./x.py build src/tools/clippy
./x.py build src/tools/rustfmt
./x.py test -vv
./x.py test src/tools/cargo
./x.py 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.