termusic: 0.9.1 -> 0.10.0 (#388541)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
alsa-lib,
|
||||
dbus,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
glib,
|
||||
gst_all_1,
|
||||
lib,
|
||||
@@ -17,41 +16,17 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "termusic";
|
||||
version = "0.9.1";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tramhao";
|
||||
repo = "termusic";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-aEkg1j6R86QGn21HBimtZwmjmW1K9Wo+67G4DlpY960=";
|
||||
hash = "sha256-Yd23Jk2BFuLtxgF8vgat0wTGq6ahHHBd/HjGI9BY9z4=";
|
||||
};
|
||||
|
||||
cargoPatches = [
|
||||
# both following patches can be removed with the follow up release to 0.9.1 as they are cherry-picked from `termusic/master` branch
|
||||
# fix build issue with 0.9.1 release and vendoring producing wrong hash for soundtouch-ffi
|
||||
(fetchpatch {
|
||||
url = "https://github.com/tramhao/termusic/commit/211fc3fe008932d052d31d3b836e8a80eade3cfe.patch";
|
||||
hash = "sha256-11kSI28YonoTe5W31+R76lGhNiN1ZLAg94FrfYiZUAY=";
|
||||
})
|
||||
# fix a bug through previous patch
|
||||
(fetchpatch {
|
||||
url = "https://github.com/tramhao/termusic/commit/2a40b2f366dfa5c1f008c79a3ff5c1bbf53fe10f.patch";
|
||||
hash = "sha256-b7CJ5SqxrU1Jr4GDaJe9sFutDHMqIQxGhXbBFGB6y84=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
pushd $cargoDepsCopy/stream-download-0.6.0
|
||||
oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1)
|
||||
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)
|
||||
popd
|
||||
'';
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-LWatmnmLBDf4BFq5RMQBbN4wmptYuz3xqyzz6gJGzX8=";
|
||||
cargoHash = "sha256-1WomL0O5QS2NHu4k6TuA2jLtDKyxlY0iVCgH9pb6CHI=";
|
||||
|
||||
useNextest = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user