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

35 lines
859 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-07-28 08:30:50 +02:00
buildGoModule rec {
pname = "mpd-mpris";
2021-08-15 11:55:40 +02:00
version = "0.3.1";
2019-07-28 08:30:50 +02:00
src = fetchFromGitHub {
owner = "natsukagami";
repo = pname;
rev = "v${version}";
2021-08-15 11:55:40 +02:00
sha256 = "sha256-eI7/E5rhNCZfURwGkfa0f+Yie1EU8zR9r+1eAqrlmVY=";
2019-07-28 08:30:50 +02:00
};
2021-08-15 11:55:40 +02:00
vendorSha256 = "sha256-GmdD/4VYp3KeblNGgltFWHdOnK5qsBa2ygIYOBrH+b0=";
2019-07-28 08:30:50 +02:00
doCheck = false;
2019-07-28 08:30:50 +02: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 08:30:50 +02: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 10:28:09 +01:00
platforms = platforms.unix;
2019-07-28 08:30:50 +02:00
};
}