diff --git a/pkgs/by-name/ce/cell/package.nix b/pkgs/by-name/ce/cell/package.nix new file mode 100644 index 000000000000..191570862f2b --- /dev/null +++ b/pkgs/by-name/ce/cell/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "cell"; + version = "0.5.0"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "garritfra"; + repo = "cell"; + tag = "v${finalAttrs.version}"; + hash = "sha256-J13D46ttG7KlePyFZYxqjaMF7ZR5m3nTJ8/GLm4VH5o="; + }; + + cargoHash = "sha256-ZQXyt/hL6wamGrFvmrShoUCTSGAo8V5CuejAzO5oCuU="; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fast terminal spreadsheet editor with Vim keybindings"; + homepage = "https://github.com/garritfra/cell"; + changelog = "https://github.com/garritfra/cell/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ airrnot ]; + mainProgram = "cell"; + }; +})