{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin, }: rustPlatform.buildRustPackage rec { pname = "jellyfin-rpc"; version = "1.3.0"; src = fetchFromGitHub { owner = "Radiicall"; repo = "jellyfin-rpc"; rev = version; hash = "sha256-sr82lTOr6RUvYD0CVZMyyRAFjai1oLnRWIszuu7/jE0="; }; cargoHash = "sha256-KHbYM7aWgch+DWF46DpFCCt7JoKR0sasuFO3xPOytWA="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; meta = { description = "Displays the content you're currently watching on Discord"; homepage = "https://github.com/Radiicall/jellyfin-rpc"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ CaptainJawZ ]; mainProgram = "jellyfin-rpc"; }; }