{ lib , rustPlatform , fetchFromGitHub , stdenv , darwin }: rustPlatform.buildRustPackage rec { pname = "mpris-notifier"; version = "0.1.9"; src = fetchFromGitHub { owner = "l1na-forever"; repo = "mpris-notifier"; rev = "v${version}"; hash = "sha256-s7/eN2gn8VmNtrI9zEBASs7jzxgfszJjNlXR7IVr3G4="; }; cargoHash = "sha256-DTB1Ranz2oeuWVMuFNe+kjuQFnPqBoDeqxuYFU9svSs="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; meta = with lib; { description = "Dependency-light, highly-customizable, XDG desktop notification generator for MPRIS status changes"; homepage = "https://github.com/l1na-forever/mpris-notifier"; license = licenses.mit; maintainers = with maintainers; [ leixb ]; mainProgram = "mpris-notifier"; }; }