nushellPlugins.semver: init at 0.11.4 (#404014)

authored by Kira and committed by GitHub 3f08fcf3 50dd5a53

+38
+5
maintainers/maintainer-list.nix
··· 13079 13079 githubId = 361496; 13080 13080 name = "Nikola Knežević"; 13081 13081 }; 13082 + koffydrop = { 13083 + github = "koffydrop"; 13084 + githubId = 67888720; 13085 + name = "Kira"; 13086 + }; 13082 13087 kolaente = { 13083 13088 email = "k@knt.li"; 13084 13089 github = "kolaente";
+1
pkgs/shells/nushell/plugins/default.nix
··· 21 21 nushell_plugin_dbus = self.dbus; 22 22 }; 23 23 skim = callPackage ./skim.nix { }; 24 + semver = callPackage ./semver.nix { }; 24 25 } 25 26 // lib.optionalAttrs config.allowAliases { 26 27 regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";
+32
pkgs/shells/nushell/plugins/semver.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + nix-update-script, 6 + }: 7 + 8 + rustPlatform.buildRustPackage (finalAttrs: { 9 + pname = "nu_plugin_semver"; 10 + version = "0.11.4"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "abusch"; 14 + repo = "nu_plugin_semver"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-VTMaZUYgb7wZqiZmd5IVxQsjbHx3QC75VQQdJqaCvfY="; 17 + }; 18 + 19 + cargoHash = "sha256-oPP4lwXe4jJLfTjUWfaHxQX6CfHbXO5DajyK4r/l6bo="; 20 + 21 + passthru.update-script = nix-update-script { }; 22 + 23 + meta = { 24 + description = "A nushell plugin to work with semver versions"; 25 + homepage = "https://github.com/abusch/nu_plugin_semver"; 26 + changelog = "https://github.com/abusch/nu_plugin_semver/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 27 + license = lib.licenses.mit; 28 + maintainers = with lib.maintainers; [ koffydrop ]; 29 + mainProgram = "nu_plugin_semver"; 30 + platforms = lib.platforms.linux; 31 + }; 32 + })