luaPackages.neorg: init at 9.1.1-1

Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Gaetan Lepage 2024-04-07 14:42:33 +02:00 committed by Gaétan Lepage
parent d3e5730bbd
commit b4cde4d7f1
6 changed files with 34 additions and 17 deletions

View File

@ -114,6 +114,7 @@ middleclass,,,,,,
mimetypes,,,,,,
mpack,,,,,,
moonscript,https://raw.githubusercontent.com/leafo/moonscript/master/moonscript-dev-1.rockspec,,,,,arobyn
neorg,,,,,,GaetanLepage
neotest,,,,,,mrcjkb
nlua,,,,,,teto
nui.nvim,,,,,,mrcjkb

1 name rockspec ref server version luaversion maintainers
114 mimetypes
115 mpack
116 moonscript https://raw.githubusercontent.com/leafo/moonscript/master/moonscript-dev-1.rockspec arobyn
117 neorg GaetanLepage
118 neotest mrcjkb
119 nlua teto
120 nui.nvim mrcjkb

View File

@ -7443,18 +7443,6 @@ final: prev:
meta.homepage = "https://github.com/ii14/neorepl.nvim/";
};
neorg = buildVimPlugin {
pname = "neorg";
version = "2024-09-08";
src = fetchFromGitHub {
owner = "nvim-neorg";
repo = "neorg";
rev = "ba35900b21921c439e676b063a79c8fad914eac9";
sha256 = "12sgvf7zbabxvmdf07cv8rcql6jdgdv5xdcn7v5w42q8lg9mps10";
};
meta.homepage = "https://github.com/nvim-neorg/neorg/";
};
neorg-telescope = buildVimPlugin {
pname = "neorg-telescope";
version = "2024-07-30";

View File

@ -1238,9 +1238,7 @@ in
dependencies = with self; [ plenary-nvim ];
};
neorg = super.neorg.overrideAttrs {
dependencies = with self; [ plenary-nvim ];
};
neorg = neovimUtils.buildNeovimPlugin { luaAttr = luaPackages.neorg; };
neotest = super.neotest.overrideAttrs {
dependencies = with self; [ nvim-nio plenary-nvim ];

View File

@ -623,7 +623,6 @@ https://github.com/neomake/neomake/,,
https://github.com/Shougo/neomru.vim/,,
https://github.com/rafamadriz/neon/,,
https://github.com/ii14/neorepl.nvim/,HEAD,
https://github.com/nvim-neorg/neorg/,,
https://github.com/nvim-neorg/neorg-telescope/,HEAD,
https://github.com/karb94/neoscroll.nvim/,,
https://github.com/Shougo/neosnippet-snippets/,,

View File

@ -2718,6 +2718,28 @@ buildLuarocksPackage {
};
}) {};
neorg = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, lua-utils-nvim, luaOlder, nui-nvim, nvim-nio, pathlib-nvim, plenary-nvim }:
buildLuarocksPackage {
pname = "neorg";
version = "9.1.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/neorg-9.1.1-1.rockspec";
sha256 = "0zafy1hkrvh41vlx1g4rqlcvc4x9pi8dcji30qi0b8lj45pldyr3";
}).outPath;
src = fetchzip {
url = "https://github.com/nvim-neorg/neorg/archive/v9.1.1.zip";
sha256 = "18lk22lfzwwn4hy2s035g3kslqmvrr28lm5w9k3dazqwj5nlka3z";
};
disabled = luaOlder "5.1";
propagatedBuildInputs = [ lua-utils-nvim nui-nvim nvim-nio pathlib-nvim plenary-nvim ];
meta = {
homepage = "https://github.com/nvim-neorg/neorg";
description = "Modernity meets insane extensibility. The future of organizing your life in Neovim.";
maintainers = with lib.maintainers; [ GaetanLepage ];
license.fullName = "GPL-3.0";
};
}) {};
neotest = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, nvim-nio, plenary-nvim }:
buildLuarocksPackage {
pname = "neotest";

View File

@ -583,7 +583,16 @@ in
export HOME=$(mktemp -d)
busted --lua=nlua
runHook postCheck
'';
'';
});
neorg = prev.neorg.overrideAttrs (oa: {
postConfigure = ''
cat ''${rockspecFilename}
substituteInPlace ''${rockspecFilename} \
--replace-fail "'nvim-nio ~> 1.7'," "'nvim-nio >= 1.7'," \
--replace-fail "'plenary.nvim == 0.1.4'," "'plenary.nvim',"
'';
});
plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {