mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
meta: Move base16-nvim into separate package
Makes the package easier to use outside of the config.
This commit is contained in:
parent
4fcf7d48af
commit
aa32d93576
@ -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
25
packages/base16-nvim.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user