nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.14";
11
12 src = fetchFromGitHub {
13 owner = "abusch";
14 repo = "nu_plugin_semver";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-mfwgwY/iYdMz8Qn6a9zfpMHWHl2n1Q8ClkT+KiCAGyk=";
17 };
18
19 cargoHash = "sha256-5zVqMUC+wg2joo1DKuTUdRwsC5iH7uuyML9SnB2bZCs=";
20
21 passthru.updateScript = 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 };
31})