1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "nu_plugin_semver";
10 version = "0.11.6";
11
12 src = fetchFromGitHub {
13 owner = "abusch";
14 repo = "nu_plugin_semver";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-JF+aY7TW0NGo/E1eFVpBZQoxLxuGja8DSoJy4xgi1Lk=";
17 };
18
19 cargoHash = "sha256-609w/7vmKcNv1zSfd+k6TTeU2lQuzHX3W5Y8EqKIiAM=";
20
21 passthru.update-script = nix-update-script { };
22
23 meta = {
24 description = "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})