Skip to content
Merged
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 @@ -58,6 +58,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
31 changes: 31 additions & 0 deletions pkgs/shells/nushell/plugins/desktop_notifications.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
pname = "nu_plugin_desktop_notifications";
version = "0.106.1";

src = fetchFromGitHub {
owner = "FMotalleb";
repo = "nu_plugin_desktop_notifications";
tag = "v${finalAttrs.version}";
hash = "sha256-FuiXHl7O6/DN7kENrVxOys8mJAGbpb11w9iJ+mqQ/ds=";
};

cargoHash = "sha256-yFkiRGrg8eGGap5vyZVRMpddsoTYNrwSC94uLYufmdc=";

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

meta = {
description = "Nushell plugin for sending desktop notifications";
mainProgram = "nu_plugin_desktop_notifications";
homepage = "https://github.com/FMotalleb/nu_plugin_desktop_notifications";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ timon ];
platforms = lib.platforms.linux;
};
})
Loading