vim/flake.nix

37 lines
826 B
Nix
Raw Normal View History

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;
};
};
outputs = { self, nixpkgs, flake-utils, rainbow-vim-src, ... }:
let
customPlugins = pkgs: {
rainbow-vim = pkgs.vimUtils.buildVimPlugin {
name = "rainbow-vim";
src = rainbow-vim-src;
};
};
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;
};
}