39 lines
856 B
Nix
39 lines
856 B
Nix
{
|
|
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";
|
|
};
|
|
})
|