about summary refs log tree commit diff
path: root/users/wpcarro/tools/simple_vim/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/tools/simple_vim/default.nix')
-rw-r--r--users/wpcarro/tools/simple_vim/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/wpcarro/tools/simple_vim/default.nix b/users/wpcarro/tools/simple_vim/default.nix
new file mode 100644
index 000000000000..f8f965f2c024
--- /dev/null
+++ b/users/wpcarro/tools/simple_vim/default.nix
@@ -0,0 +1,15 @@
+{ pkgs, ... }:
+
+let
+  configVim = builtins.path {
+    path = ./config.vim;
+    name = "config.vim";
+  };
+
+  script = pkgs.writeShellScriptBin "simple_vim" ''
+    ${pkgs.vim}/bin/vim -u ${configVim}
+  '';
+in pkgs.stdenv.mkDerivation {
+  name = "simple_vim";
+  buildInputs = [ script ];
+}