2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mpris-notifier";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.1.9";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "l1na-forever";
|
|
|
|
repo = "mpris-notifier";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-s7/eN2gn8VmNtrI9zEBASs7jzxgfszJjNlXR7IVr3G4=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-DTB1Ranz2oeuWVMuFNe+kjuQFnPqBoDeqxuYFU9svSs=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|