about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--default.nix3
-rw-r--r--pkgs/vim-plugins/gemini-syntax.nix22
2 files changed, 25 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index a684f70..16d9402 100644
--- a/default.nix
+++ b/default.nix
@@ -38,6 +38,9 @@
   larbs-scripts = pkgs.callPackage ./pkgs/larbs-scripts { };
   larbs-music = pkgs.callPackage ./pkgs/larbs-music { };
 
+  ## VIM PLUGINS
+  gemini-vim-syntax = pkgs.callPackage ./pkgs/vim-plugins/gemini-syntax.nix { };
+
   #fx = (pkgs.callPackage ./pkgs/fx { }).package;
   # xcb-util = pkgs.callPackage ./pkgs/xcb-util { }; #unknown error
   # ...
diff --git a/pkgs/vim-plugins/gemini-syntax.nix b/pkgs/vim-plugins/gemini-syntax.nix
new file mode 100644
index 0000000..cd8affd
--- /dev/null
+++ b/pkgs/vim-plugins/gemini-syntax.nix
@@ -0,0 +1,22 @@
+{ stdenv, bash, fetchgit }:
+
+stdenv.mkDerivation {
+  name = "gemini-vim-syntax";
+
+  src = fetchgit {
+    url = "https://tildegit.org/sloum/gemini-vim-syntax";
+    rev = "5c206be6d5635500dd2276681050a40ddb0ba5e3";
+    sha256 = "0s0yqj85vadlyny0cw0n5gvhdiy537b0fnycpnahwmbwha2p3mc1";
+  };
+
+  buildPhase = ''
+    rm Makefile
+  '';
+
+  installPhase = ''
+    DEST=$out/share/vim-plugins/gemini-vim-syntax
+    mkdir -p $DEST
+    cp -r ftdetect $DEST
+    cp -r syntax $DEST
+  '';
+}