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, lib,
bash, dash,
fetchFromGitHub, fetchFromGitHub,
rustPlatform, rustPlatform,
pkg-config, pkg-config,
@ -11,17 +11,17 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "rescrobbled"; pname = "rescrobbled";
version = "0.7.1"; version = "0.7.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "InputUsername"; owner = "InputUsername";
repo = "rescrobbled"; repo = "rescrobbled";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-1E+SeKjHCah+IFn2QLAyyv7jgEcZ1gtkh8iHgiVBuz4="; hash = "sha256-HWv0r0eqzY4q+Q604ZIkdhnjmCGX+L6HHXa6iCtH2KE=";
}; };
useFetchCargoVendor = true; useFetchCargoVendor = true;
cargoHash = "sha256-oXj3pMT7lBcj/cNa6FY8ehr9TVSRUwqW3B4g5VeyH2w="; cargoHash = "sha256-zZqDbXIXuNX914EmeSv3hZFnpjYzYdYZk7av3W60YuM=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -32,11 +32,11 @@ rustPlatform.buildRustPackage rec {
postPatch = '' postPatch = ''
# Required for tests # 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 = '' 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" install -Dm644 rescrobbled.service -t "$out/share/systemd/user"
''; '';