diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-03-26 18:07:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 18:07:54 -0500 |
commit | a74a22b1ffa132bd7b6febdb25411e10959b729b (patch) | |
tree | 52ce8038df3046535024a6f0a6e97d6c45c6150b | |
parent | 59daf9b0b6a8c577cad7c0679380dda63485f1ad (diff) | |
parent | 5e9074583781c074c6d34b63ee4e6b069a9f7ab7 (diff) |
Merge pull request #299184 from marsam/update-termusic
termusic: 0.7.11 -> 0.9.0
-rw-r--r-- | pkgs/applications/audio/termusic/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/applications/audio/termusic/default.nix b/pkgs/applications/audio/termusic/default.nix index 0df3cfcb46b88..c36240558b722 100644 --- a/pkgs/applications/audio/termusic/default.nix +++ b/pkgs/applications/audio/termusic/default.nix @@ -22,16 +22,26 @@ rustPlatform.buildRustPackage rec { pname = "termusic"; - version = "0.7.11"; + version = "0.9.0"; src = fetchFromGitHub { owner = "tramhao"; repo = "termusic"; rev = "v${version}"; - hash = "sha256-ykOBXM/WF+zasAt+6mgY2aSFCpGaYcqk+YI7YLM3MWs="; + hash = "sha256-FOFZg32hrWpKVsjkMDkiqah7jmUZw0HRWGqOvsN0t8Q="; }; - cargoHash = "sha256-BrOpU0RFdlRXQIMjfHfs/XYIdBCYKFSA+5by/rGzC8Y="; + postPatch = '' + pushd $cargoDepsCopy/stream-download + oldHash=$(sha256sum src/lib.rs | cut -d " " -f 1) + substituteInPlace $cargoDepsCopy/stream-download/src/lib.rs \ + --replace-warn '#![doc = include_str!("../README.md")]' "" + substituteInPlace .cargo-checksum.json \ + --replace $oldHash $(sha256sum src/lib.rs | cut -d " " -f 1) + popd + ''; + + cargoHash = "sha256-r5FOl3Bp3GYhOhvWj/y6FXsuG2wvuFcMcYKBzVBVqiM="; nativeBuildInputs = [ pkg-config @@ -62,5 +72,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/tramhao/termusic"; license = with lib.licenses; [ gpl3Only ]; maintainers = with lib.maintainers; [ devhell ]; + mainProgram = "termusic"; }; } |