34 lines
855 B
Nix
34 lines
855 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.package;
|
||
|
in
|
||
|
{
|
||
|
lib = { inherit mkNixeovim mkNixeovimPackage; };
|
||
|
}
|
||
|
// flake-utils.lib.eachDefaultSystem (
|
||
|
system:
|
||
|
let nixeovimPackage = config: mkNixeovimPackage { inherit system config; }; in
|
||
|
{
|
||
|
packages = {
|
||
|
default = nixeovimPackage { };
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|