Skip to content

Commit 8d76e4c

Browse files
committed
mpd-mpris: apply natsukagami/mpd-mpris#76
Fixes a difficult-to-diagnose bug where mpd skips the last half-second or so of every track.
1 parent 449fa04 commit 8d76e4c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/mp/mpd-mpris/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
fetchpatch,
56
}:
67

78
buildGoModule (finalAttrs: {
@@ -19,6 +20,13 @@ buildGoModule (finalAttrs: {
1920

2021
subPackages = [ "cmd/mpd-mpris" ];
2122

23+
patches = [
24+
(fetchpatch {
25+
url = "https://github.com/natsukagami/mpd-mpris/commit/1591f15548aed0f9741d723f24fb505cb24fafe8.patch";
26+
hash = "sha256-6ZqR4woKiIjwLxyafmidTM8eBXtvBzKNXZvtS1+KKKI=";
27+
})
28+
];
29+
2230
postPatch = ''
2331
substituteInPlace services/mpd-mpris.service --replace-fail "ExecStart=" "ExecStart=$out/bin/"
2432
'';

0 commit comments

Comments
 (0)