about summary refs log tree commit diff
path: root/tools/simple_vim/default.nix
blob: f8f965f2c0249f2bfd645866622f5538563f2bae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ];
}