nixpkgs/pkgs/tools/audio/mpd-mpris/default.nix

35 lines
859 B
Nix
Raw Normal View History

{ 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
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
'';
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
};
}