luaPackages.coop-nvim: init at 1.2.0-0

https://github.com/gregorias/coop.nvim

Add coop.nvim to nixpkgs. It has subroutines for async lua scripts and revert #529266 [explaination](https://github.com/NixOS/nixpkgs/pull/529266#pullrequestreview-4446939030).
This commit is contained in:
Rahul Kochar
2026-06-08 19:05:21 +02:00
parent 2e4ed75cff
commit 238f865c57
4 changed files with 35 additions and 17 deletions
@@ -490,6 +490,38 @@ final: prev: {
}
) { };
coop-nvim = callPackage (
{
buildLuarocksPackage,
fetchFromGitHub,
fetchurl,
luaOlder,
}:
buildLuarocksPackage {
pname = "coop.nvim";
version = "1.2.0-0";
knownRockspec =
(fetchurl {
url = "mirror://luarocks/coop.nvim-1.2.0-0.rockspec";
sha256 = "1fkpdddk2c2wibk0khgmvr03in2hz8wd3gdmmfbfbpb6jybhcckg";
}).outPath;
src = fetchFromGitHub {
owner = "gregorias";
repo = "coop.nvim";
rev = "b156e541316aee14be4ae64c93ed8bddb6d03bc1";
hash = "sha256-S6iGmdakI714Im0tetgfASbe0K4/olYsjj26+WP+rSU=";
};
disabled = luaOlder "5.1";
meta = {
homepage = "https://github.com/gregorias/coop.nvim";
license = lib.licenses.gpl3Only;
description = "A Neovim plugin for structured concurrency with coroutines.";
};
}
) { };
cosmo = callPackage (
{
buildLuarocksPackage,