nixeovim/flake.nix

34 lines
856 B
Nix
Raw Normal View History

2024-05-05 17:56:14 +03:00
{
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;
2024-05-05 17:56:14 +03:00
in
{
lib = { inherit mkNixeovim mkNixeovimPackage; };
}
// flake-utils.lib.eachDefaultSystem (
system:
let nixeovimPackage = config: mkNixeovimPackage { inherit system config; }; in
{
packages = {
default = nixeovimPackage { };
};
}
);
}