diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3bc03735be8a9..646373f6c266c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -541,6 +541,12 @@ github = "aciceri"; githubId = 2318843; }; + acidbong = { + name = "Acid Bong"; + email = "acidbong@tilde.club"; + github = "acid-bong"; + githubId = 94849097; + }; acowley = { email = "acowley@gmail.com"; github = "acowley"; diff --git a/pkgs/by-name/mp/mpdris2-rs/package.nix b/pkgs/by-name/mp/mpdris2-rs/package.nix new file mode 100644 index 0000000000000..1615412a4ad90 --- /dev/null +++ b/pkgs/by-name/mp/mpdris2-rs/package.nix @@ -0,0 +1,41 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mpdris2-rs"; + version = "1.0.2"; + + src = fetchFromGitHub { + owner = "szclsya"; + repo = "mpdris2-rs"; + tag = "v${finalAttrs.version}"; + hash = "sha256-E9H6bjmWZx35fZo/ZPvJL1w/YQ34pJ7z81YbB5fUZSU="; + }; + cargoHash = "sha256-rA/za8fc2RiURaiijc49y+2QBcS6cDavZQFjVh+7Iow="; + + postPatch = '' + substituteInPlace misc/mpdris2-rs.service --replace-fail "/usr/local" "$out" + ''; + + postInstall = '' + install -Dm644 misc/mpdris2-rs.service -t $out/lib/systemd/user + ''; + + meta = { + description = "Exposing MPRIS V2.2 D-Bus interface for MPD"; + longDescription = '' + A lightweight implementation of MPD to D-Bus bridge, which exposes MPD + player and playlist information onto MPRIS2 interface so other programs + can use this generic interface to retrieve MPD's playback state. + ''; + homepage = "https://github.com/szclsya/mpdris2-rs"; + changelog = "https://github.com/szclsya/mpdris2-rs/blob/${finalAttrs.src.rev}/Changes.md"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ + acidbong + ]; + mainProgram = "mpdris2-rs"; + }; +})