2020-10-29 17:54:07 -04:00
|
|
|
{
|
|
|
|
description = "tA's vim setup";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
rainbow-vim-src = {
|
|
|
|
url = "github:frazrepo/vim-rainbow";
|
|
|
|
flake = false;
|
|
|
|
};
|
2020-11-15 05:25:30 -05:00
|
|
|
vim-racket-src = {
|
|
|
|
url = "github:wlangstroth/vim-racket";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
slimv-src = {
|
|
|
|
url = "github:kovisoft/slimv";
|
|
|
|
flake = false;
|
|
|
|
};
|
2020-10-29 17:54:07 -04:00
|
|
|
};
|
2020-11-15 05:25:30 -05:00
|
|
|
outputs = { self, nixpkgs, flake-utils, rainbow-vim-src
|
|
|
|
, vim-racket-src, slimv-src, ... }:
|
2020-10-29 17:54:07 -04:00
|
|
|
let
|
|
|
|
customPlugins = pkgs: {
|
|
|
|
rainbow-vim = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "rainbow-vim";
|
|
|
|
src = rainbow-vim-src;
|
|
|
|
};
|
2020-11-15 05:25:30 -05:00
|
|
|
vim-racket = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "vim-racket";
|
|
|
|
src = vim-racket-src;
|
|
|
|
};
|
|
|
|
slimv = pkgs.vimUtils.buildVimPlugin {
|
|
|
|
name = "slimv";
|
|
|
|
src = slimv-src;
|
|
|
|
};
|
2020-10-29 17:54:07 -04:00
|
|
|
};
|
|
|
|
in flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
overlays = [ ((import ./overlay.nix) customPlugins) ];
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
defaultPackage = pkgs.ta.vim;
|
|
|
|
}) // {
|
|
|
|
overlay = (import ./overlay.nix) customPlugins;
|
|
|
|
};
|
|
|
|
}
|