luaPackages.fzy: init at 1.0-1
This commit is contained in:
parent
1e72cc2d8a
commit
8998288f7b
@ -17,6 +17,7 @@ dkjson,,,,,,
|
||||
fennel,,,,,,misterio77
|
||||
fifo,,,,,,
|
||||
fluent,,,,,,alerque
|
||||
fzy,,,,,,mrcjkb
|
||||
gitsigns.nvim,https://github.com/lewis6991/gitsigns.nvim.git,,,,5.1,
|
||||
haskell-tools.nvim,,,,,,
|
||||
http,,,,0.3-0,,vcunat
|
||||
|
|
@ -514,6 +514,39 @@ buildLuarocksPackage {
|
||||
};
|
||||
}) {};
|
||||
|
||||
fzy = callPackage({ buildLuarocksPackage, fetchgit, fetchurl, lua, luaOlder }:
|
||||
buildLuarocksPackage {
|
||||
pname = "fzy";
|
||||
version = "1.0-1";
|
||||
knownRockspec = (fetchurl {
|
||||
url = "mirror://luarocks/fzy-1.0-1.rockspec";
|
||||
sha256 = "1v050lm3rn1k5wwi2nimlbp1b7j6b8vkwvhc1npyqzj8jv7w9w9n";
|
||||
}).outPath;
|
||||
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
|
||||
"url": "https://github.com/swarn/fzy-lua",
|
||||
"rev": "2d018a56e3a240bca4b3142a723b2f56392f3e4a",
|
||||
"date": "2023-01-29T07:05:02-06:00",
|
||||
"path": "/nix/store/nz19glmy52jbz46wl7xf0jd8m441klf0-fzy-lua",
|
||||
"sha256": "0xknm5513a6nlariwxgqndf3wj8xals26swjsv06hx133ihna01x",
|
||||
"hash": "sha256-PQBlYRwjdGjA1pJrIzRVHUk+XLP4dR6zotaoEUqpdnY=",
|
||||
"fetchLFS": false,
|
||||
"fetchSubmodules": true,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
'') ["date" "path" "sha256"]) ;
|
||||
|
||||
disabled = (luaOlder "5.1");
|
||||
propagatedBuildInputs = [ lua ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/swarn/fzy-lua";
|
||||
description = "A fuzzy string-matching algorithm";
|
||||
maintainers = with lib.maintainers; [ mrcjkb ];
|
||||
license.fullName = "MIT";
|
||||
};
|
||||
}) {};
|
||||
|
||||
gitsigns-nvim = callPackage({ buildLuarocksPackage, fetchgit, lua }:
|
||||
buildLuarocksPackage {
|
||||
pname = "gitsigns.nvim";
|
||||
|
@ -126,6 +126,16 @@ with prev;
|
||||
'';
|
||||
});
|
||||
|
||||
# Until https://github.com/swarn/fzy-lua/pull/8 is merged,
|
||||
# we have to invoke busted manually
|
||||
fzy = prev.fzy.overrideAttrs(oa: {
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [ prev.busted ];
|
||||
checkPhase = ''
|
||||
busted test/test.lua
|
||||
'';
|
||||
});
|
||||
|
||||
http = prev.http.overrideAttrs (oa: {
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
|
Loading…
Reference in New Issue
Block a user