nvf/flake/packages.nix
2023-03-31 05:26:46 +03:00

33 lines
729 B
Nix

{inputs, ...}: {
perSystem = {
system,
config,
pkgs,
...
}: let
docs = import ../docs {
inherit pkgs;
nmdSrc = inputs.nmd;
};
in {
packages =
{
# Documentation
docs = docs.manual.html;
docs-html = docs.manual.html;
docs-manpages = docs.manPages;
docs-json = docs.options.json;
# nvim configs
nix = config.legacyPackages.neovim-nix;
maximal = config.legacyPackages.neovim-maximal;
default = config.legacyPackages.neovim-nix;
}
// (
if !(builtins.elem system ["aarch64-darwin" "x86_64-darwin"])
then {tidal = config.legacyPackages.neovim-tidal;}
else {}
);
};
}