samply: use importCargoLock

Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  Most
packages can just enable useFetchCargoVendor and regenerate their
hashes, but this one hits a fetchCargoVendor edge case, so the only
safe mechanism post-1.84.0 is importCargoLock.
This commit is contained in:
Alyssa Ross
2025-01-31 08:55:31 +01:00
parent 4aa531c175
commit 46f322e8bd
2 changed files with 2500 additions and 1 deletions
+2497
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -17,7 +17,9 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-7bf1lDIZGhRpvnn8rHNwzH2GBY8CwtYCjuRAUTQgbsA=";
};
cargoHash = "sha256-QGvtKx+l6+UxdlziHnF63geAvW55RRlatK2/J8LR0Ck=";
# Can't use fetchCargoVendor:
# https://github.com/NixOS/nixpkgs/issues/377986
cargoLock.lockFile = ./Cargo.lock;
# the dependencies linux-perf-data and linux-perf-event-reader contains both README.md and Readme.md,
# which causes a hash mismatch on systems with a case-insensitive filesystem