diff options
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..be725bd --- /dev/null +++ b/default.nix @@ -0,0 +1,30 @@ +{ + lib, + buildVimPluginFrom2Nix, + self, + version, +}: let + filter = path: type: let + path' = toString path; + base = baseNameOf path'; + isLua = lib.any (suffix: lib.hasSuffix suffix base) [".lua"]; + in + type == "directory" || isLua; + + filterSource = src: + lib.cleanSourceWith { + src = lib.cleanSource self; + inherit filter; + }; +in + buildVimPluginFrom2Nix { + pname = "getchvim"; + inherit version; + src = filterSource self; + meta = with lib; { + homepage = "https://github.com/getchoo/getchvim"; + license = licenses.mit; + maintainers = with maintainers; [getchoo]; + platforms = platforms.all; + }; + } |
