diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 55d3c017e5dd..80f524b1ae85 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13079,6 +13079,11 @@ githubId = 361496; name = "Nikola Knežević"; }; + koffydrop = { + github = "koffydrop"; + githubId = 67888720; + name = "Kira"; + }; kolaente = { email = "k@knt.li"; github = "kolaente"; diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix index cdd2f9e367cb..1305cd7183f4 100644 --- a/pkgs/shells/nushell/plugins/default.nix +++ b/pkgs/shells/nushell/plugins/default.nix @@ -21,6 +21,7 @@ lib.makeScope newScope ( nushell_plugin_dbus = self.dbus; }; skim = callPackage ./skim.nix { }; + semver = callPackage ./semver.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/semver.nix b/pkgs/shells/nushell/plugins/semver.nix new file mode 100644 index 000000000000..b7b263ec54c1 --- /dev/null +++ b/pkgs/shells/nushell/plugins/semver.nix @@ -0,0 +1,32 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "nu_plugin_semver"; + version = "0.11.4"; + + src = fetchFromGitHub { + owner = "abusch"; + repo = "nu_plugin_semver"; + tag = "v${finalAttrs.version}"; + hash = "sha256-VTMaZUYgb7wZqiZmd5IVxQsjbHx3QC75VQQdJqaCvfY="; + }; + + cargoHash = "sha256-oPP4lwXe4jJLfTjUWfaHxQX6CfHbXO5DajyK4r/l6bo="; + + passthru.update-script = nix-update-script { }; + + meta = { + description = "A nushell plugin to work with semver versions"; + homepage = "https://github.com/abusch/nu_plugin_semver"; + changelog = "https://github.com/abusch/nu_plugin_semver/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ koffydrop ]; + mainProgram = "nu_plugin_semver"; + platforms = lib.platforms.linux; + }; +})