summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-01 15:35:00 -0400
committerseth <[email protected]>2023-09-06 10:48:13 -0400
commit27bee5c6bc5ab8df93f2be20fc9e20ed6e71bd27 (patch)
tree2b1e8872f28aa51ca7c5a12ade51a3dca2de2bdf /default.nix
initial commit
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix30
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;
+ };
+ }