diff options
author | Aleksana <me@aleksana.moe> | 2024-04-18 19:17:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 19:17:50 +0800 |
commit | c8cdfffad8f3c5b88f3c1c8c2066047e69034060 (patch) | |
tree | c282ee44b8327a128490829e57f8d3ee056e7212 /pkgs/by-name | |
parent | b254f343abfba631c4b570b077ae7a71b51788b6 (diff) | |
parent | 89f6f01a7ee351783f2a597e9d04e0ed19b5f678 (diff) |
Merge pull request #304901 from Leixb/mpris-notifier
mpris-notifier: init at 0.1.7
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/mp/mpris-notifier/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/mp/mpris-notifier/package.nix b/pkgs/by-name/mp/mpris-notifier/package.nix new file mode 100644 index 0000000000000..43f455a37b189 --- /dev/null +++ b/pkgs/by-name/mp/mpris-notifier/package.nix @@ -0,0 +1,32 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "mpris-notifier"; + version = "0.1.7"; + + src = fetchFromGitHub { + owner = "l1na-forever"; + repo = "mpris-notifier"; + rev = "v${version}"; + hash = "sha256-B1nfVsn95oe2FlHFjb9O4tfL/EqsZZ4JGF0mbJcCg2Y="; + }; + + cargoHash = "sha256-8WzG712/soPgooyR35L8aFIRfPC2MvV3vCcPbkTgoF0="; + + 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"; + }; +} |