2020-02-23 23:29:32 +01:00
|
|
|
{ pkgs, ... }:
|
2020-02-12 19:05:32 +01:00
|
|
|
|
|
|
|
let
|
2020-08-27 00:01:35 +02:00
|
|
|
configVim = builtins.path {
|
|
|
|
path = ./config.vim;
|
|
|
|
name = "config.vim";
|
|
|
|
};
|
|
|
|
|
2020-02-12 19:05:32 +01:00
|
|
|
script = pkgs.writeShellScriptBin "simple_vim" ''
|
2020-08-27 00:01:35 +02:00
|
|
|
${pkgs.vim}/bin/vim -u ${configVim}
|
2020-02-12 19:05:32 +01:00
|
|
|
'';
|
|
|
|
in pkgs.stdenv.mkDerivation {
|
|
|
|
name = "simple_vim";
|
|
|
|
buildInputs = [ script ];
|
|
|
|
}
|