mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
measureme: fix build with newer Rust
This commit is contained in:
parent
716f450177
commit
2d90fabb67
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
# __cpuid is safe in newer Rust; suppress lint until upstream fixes it
|
||||
env.RUSTFLAGS = "-A unused-unsafe";
|
||||
|
||||
postPatch = ''
|
||||
ln -s ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue