rescrobbled: 0.7.1 -> 0.7.2

This commit is contained in:
Negate This 2025-05-21 16:42:15 -04:00
parent 458f45cef0
commit 697e57a9ee

View file

@ -1,6 +1,6 @@
{
lib,
bash,
dash,
fetchFromGitHub,
rustPlatform,
pkg-config,
@ -11,17 +11,17 @@
rustPlatform.buildRustPackage rec {
pname = "rescrobbled";
version = "0.7.1";
version = "0.7.2";
src = fetchFromGitHub {
owner = "InputUsername";
repo = "rescrobbled";
rev = "v${version}";
hash = "sha256-1E+SeKjHCah+IFn2QLAyyv7jgEcZ1gtkh8iHgiVBuz4=";
hash = "sha256-HWv0r0eqzY4q+Q604ZIkdhnjmCGX+L6HHXa6iCtH2KE=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-oXj3pMT7lBcj/cNa6FY8ehr9TVSRUwqW3B4g5VeyH2w=";
cargoHash = "sha256-zZqDbXIXuNX914EmeSv3hZFnpjYzYdYZk7av3W60YuM=";
nativeBuildInputs = [ pkg-config ];
@ -32,11 +32,11 @@ rustPlatform.buildRustPackage rec {
postPatch = ''
# Required for tests
substituteInPlace src/filter.rs --replace '#!/usr/bin/bash' '#!${bash}/bin/bash'
substituteInPlace src/filter.rs --replace-fail '#!/usr/bin/env sh' '#!${dash}/bin/dash'
'';
postInstall = ''
substituteInPlace rescrobbled.service --replace '%h/.cargo/bin/rescrobbled' "$out/bin/rescrobbled"
substituteInPlace rescrobbled.service --replace-fail '%h/.cargo/bin/rescrobbled' "$out/bin/rescrobbled"
install -Dm644 rescrobbled.service -t "$out/share/systemd/user"
'';