Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/shells/nushell/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ lib.makeScope newScope (
skim = callPackage ./skim.nix { };
semver = callPackage ./semver.nix { };
hcl = callPackage ./hcl.nix { };
desktop-notifications = callPackage ./desktop-notifications.nix { };
}
// lib.optionalAttrs config.allowAliases {
regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";
Expand Down
40 changes: 40 additions & 0 deletions pkgs/shells/nushell/plugins/desktop-notifications.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
stdenv,
lib,
rustPlatform,
pkg-config,
nix-update-script,
fetchFromGitHub,
writableTmpDirAsHomeHook,
}:

rustPlatform.buildRustPackage {
pname = "nu_plugin_desktop_notifications";
version = "1.2.11-unstable-2025-05-05";

src = fetchFromGitHub {
repo = "nu_plugin_desktop_notifications";
owner = "FMotalleb";
rev = "de4464bf6ce6503977ee2bd41f11aeabc49214aa"; # No tag for nushell 0.104.0
hash = "sha256-ZQ1zOYcGTfHhRAnDxVxcZ740yF2nccIOWL+yuShhs0Y=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-DrHWdwljPsPkzbM9mok5x7gn6Op1ytwg67+HtcZg8G8=";

nativeBuildInputs =
[ pkg-config ]
++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ writableTmpDirAsHomeHook ];

passthru.updateScript = nix-update-script { };

meta = {
description = "Nushell plugin for sending desktop notifications using notify-rust";
mainProgram = "nu_plugin_desktop_notifications";
homepage = "https://github.com/FMotalleb/nu_plugin_desktop_notifications";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aldenparker ];
platforms = lib.platforms.all;
};
}