termusic: fix build

This commit is contained in:
Austin Butler 2025-02-09 17:48:20 -08:00
parent 24f7710cb6
commit b5404e7f51

View File

@ -41,9 +41,9 @@ rustPlatform.buildRustPackage rec {
];
postPatch = ''
pushd $cargoDepsCopy/stream-download
pushd $cargoDepsCopy/stream-download-0.6.0
oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1)
substituteInPlace $cargoDepsCopy/stream-download/src/lib.rs \
substituteInPlace $cargoDepsCopy/stream-download-0.6.0/src/lib.rs \
--replace-warn '#![doc = include_str!("../README.md")]' ""
substituteInPlace .cargo-checksum.json \
--replace-warn $oldHash $(sha256sum src/lib.rs | cut -d " " -f 1)