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

35 lines
870 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoModule, fetchFromGitHub }:
2019-07-28 06:30:50 +00:00
buildGoModule rec {
pname = "mpd-mpris";
2020-10-25 22:33:09 +00:00
version = "0.3.0";
2019-07-28 06:30:50 +00:00
src = fetchFromGitHub {
owner = "natsukagami";
repo = pname;
rev = "v${version}";
2020-10-25 22:33:09 +00:00
sha256 = "1kzjbv04b2garb99l64wdq8yksnm4pbhkgyzh89j5j3gb9k55zal";
2019-07-28 06:30:50 +00:00
};
2020-10-25 22:33:09 +00:00
vendorSha256 = "1ggrqwd3h602rav1dc3amsf4wxsq8mdq4ijkdsg759sqhpzl6rqs";
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 ];
platforms = platforms.linux;
};
}