From 0c08b21a748456085fda4f9f05076e58e68d4fdc Mon Sep 17 00:00:00 2001 From: ToasterUwU Date: Wed, 13 Aug 2025 08:01:01 +0200 Subject: [PATCH] mprisence: init at 1.2.4 --- pkgs/by-name/mp/mprisence/package.nix | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/mp/mprisence/package.nix diff --git a/pkgs/by-name/mp/mprisence/package.nix b/pkgs/by-name/mp/mprisence/package.nix new file mode 100644 index 000000000000..70adacdba0dc --- /dev/null +++ b/pkgs/by-name/mp/mprisence/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + dbus, + openssl, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mprisence"; + version = "1.2.4"; + + src = fetchFromGitHub { + owner = "lazykern"; + repo = "mprisence"; + tag = "v${finalAttrs.version}"; + hash = "sha256-eUUUHjR6wnbaPb1QD9luEVvu5qSAxG5c4TuMjnzRV40="; + }; + + cargoHash = "sha256-BnzDMvwqQ56VFc7AuzsfyZ002qcmRaAOMfipynZ1/Mc="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + dbus + openssl + ]; + + meta = with lib; { + description = "Highly customizable Discord Rich Presence for MPRIS media players on Linux"; + homepage = "https://github.com/lazykern/mprisence"; + license = licenses.mit; + maintainers = with maintainers; [ toasteruwu ]; + sourceProvenance = with sourceTypes; [ fromSource ]; + mainProgram = "mprisence"; + }; +})