diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix index df15b6aadd15..b8424c75b3bf 100644 --- a/pkgs/shells/nushell/plugins/default.nix +++ b/pkgs/shells/nushell/plugins/default.nix @@ -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."; diff --git a/pkgs/shells/nushell/plugins/desktop_notifications.nix b/pkgs/shells/nushell/plugins/desktop_notifications.nix new file mode 100644 index 000000000000..1a87a0af4543 --- /dev/null +++ b/pkgs/shells/nushell/plugins/desktop_notifications.nix @@ -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; + }; +})