33 lines
856 B
Nix
33 lines
856 B
Nix
{
|
|
description = "";
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nix2lua.url = "git+https://git.pleshevski.ru/mynix/nix2lua";
|
|
};
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, flake-utils
|
|
, nix2lua
|
|
, ...
|
|
} @ inputs:
|
|
let
|
|
mkNixeovim = { system, config }:
|
|
let pkgs = import nixpkgs { inherit system; }; in
|
|
import ./. { inherit config pkgs nix2lua; };
|
|
mkNixeovimPackage = args: (mkNixeovim args).build.neovim.toplevel;
|
|
in
|
|
{
|
|
lib = { inherit mkNixeovim mkNixeovimPackage; };
|
|
}
|
|
// flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let nixeovimPackage = config: mkNixeovimPackage { inherit system config; }; in
|
|
{
|
|
packages = {
|
|
default = nixeovimPackage { };
|
|
};
|
|
}
|
|
);
|
|
}
|