2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-07-28 06:30:50 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mpd-mpris";
|
2021-08-15 09:55:40 +00:00
|
|
|
version = "0.3.1";
|
2019-07-28 06:30:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natsukagami";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-15 09:55:40 +00:00
|
|
|
sha256 = "sha256-eI7/E5rhNCZfURwGkfa0f+Yie1EU8zR9r+1eAqrlmVY=";
|
2019-07-28 06:30:50 +00:00
|
|
|
};
|
|
|
|
|
2021-08-15 09:55:40 +00:00
|
|
|
vendorSha256 = "sha256-GmdD/4VYp3KeblNGgltFWHdOnK5qsBa2ygIYOBrH+b0=";
|
2019-07-28 06:30:50 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-28 06:30:50 +00:00
|
|
|
subPackages = [ "cmd/${pname}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace mpd-mpris.service \
|
|
|
|
--replace /usr/bin $out/bin
|
|
|
|
mkdir -p $out/lib/systemd/user
|
|
|
|
cp mpd-mpris.service $out/lib/systemd/user
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-28 06:30:50 +00:00
|
|
|
description = "An implementation of the MPRIS protocol for MPD";
|
|
|
|
homepage = "https://github.com/natsukagami/mpd-mpris";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2021-03-17 09:28:09 +00:00
|
|
|
platforms = platforms.unix;
|
2019-07-28 06:30:50 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|