nixeovim/flake.nix

38 lines
990 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; };
2024-05-06 02:18:36 +03:00
profiles = {
base = ./modules/profiles/base.nix;
};
2024-05-05 17:56:14 +03:00
}
// flake-utils.lib.eachDefaultSystem (
system:
let nixeovimPackage = config: mkNixeovimPackage { inherit system config; }; in
{
packages = {
default = nixeovimPackage { };
2024-05-06 02:18:36 +03:00
base = nixeovimPackage ./modules/profiles/base.nix;
2024-05-05 17:56:14 +03:00
};
}
);
}