2019-07-28 07:30:50 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mpd-mpris";
|
2020-02-06 11:01:38 +00:00
|
|
|
version = "0.2.4";
|
2019-07-28 07:30:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natsukagami";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-02-06 11:01:38 +00:00
|
|
|
sha256 = "1cr5j2z2ynj1hwkjzi5amcg59vmgazsci41v6vpsj119g7psjmzm";
|
2019-07-28 07:30:50 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = "108yjymp64iqx1b2wqjbkmbm2w199wq46g7hrmqhcziv6f4aqljp";
|
2019-07-28 07:30:50 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-07-28 07:30:50 +01: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An implementation of the MPRIS protocol for MPD";
|
|
|
|
homepage = "https://github.com/natsukagami/mpd-mpris";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|