samply: remove readme patch

The problem has been fixed upstream in linux-perf-data 0.9.0 and
linux-perf-event-reader 0.10.0
This commit is contained in:
Defelo
2025-02-13 00:10:11 +01:00
parent ad4f3bcf11
commit d0af2e5fe4
-25
View File
@@ -2,8 +2,6 @@
lib,
rustPlatform,
fetchCrate,
jq,
moreutils,
stdenv,
darwin,
}:
@@ -21,29 +19,6 @@ rustPlatform.buildRustPackage rec {
# 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
# this removes the readme files and updates cargo's checksum file accordingly
depsExtraArgs = {
nativeBuildInputs = [
jq
moreutils
];
postBuild = ''
for crate in linux-perf-data linux-perf-event-reader; do
pushd $name/$crate
rm -f README.md Readme.md
jq 'del(.files."README.md") | del(.files."Readme.md")' \
.cargo-checksum.json -c \
| sponge .cargo-checksum.json
popd
done
'';
};
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];