meta: Move base16-nvim into separate package

Makes the package easier to use outside of the config.
This commit is contained in:
Donovan Glover 2024-05-12 20:47:38 -04:00
parent 4fcf7d48af
commit aa32d93576
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 27 additions and 11 deletions

View File

@ -2,18 +2,9 @@
let
inherit (config.lib.stylix.scheme) slug;
inherit (pkgs) callPackage;
base16-nvim = pkgs.vimUtils.buildVimPlugin {
pname = "base16-nvim";
version = "2024-02-17";
src = pkgs.fetchFromGitHub {
owner = "RRethy";
repo = "base16-nvim";
rev = "b3e9ec6a82c05b562cd71f40fe8964438a9ba64a";
hash = "sha256-l0BO2boIy6mwK8ISWS3D68f8egqHYwsGSAnzjbB5aOE=";
};
};
base16-nvim = callPackage ../packages/base16-nvim.nix { };
in
{
programs.bat.enable = true;

25
packages/base16-nvim.nix Normal file
View File

@ -0,0 +1,25 @@
{
lib,
vimUtils,
fetchFromGitHub
}:
vimUtils.buildVimPlugin {
pname = "base16-nvim";
version = "2024-02-17";
src = fetchFromGitHub {
owner = "RRethy";
repo = "base16-nvim";
rev = "b3e9ec6a82c05b562cd71f40fe8964438a9ba64a";
hash = "sha256-l0BO2boIy6mwK8ISWS3D68f8egqHYwsGSAnzjbB5aOE=";
};
meta = {
description = "Neovim plugin for base16 color schemes";
homepage = "https://github.com/RRethy/base16-nvim";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.all;
};
}