luaPackages.neorg: init at 9.1.1-1
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
committed by
Gaétan Lepage
co-authored by
Austin Horstman
parent
d3e5730bbd
commit
b4cde4d7f1
@@ -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";
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user