{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
neovim = pkgs.callPackage ./. { };
in
apps.default = {
type = "app";
program = "${neovim}/bin/nvim";
packages.default = neovim;
devShells.default = pkgs.mkShell {
packages = [
neovim
pkgs.stylua # lua formatter
];
overlays = f: p: {
myneovim = neovim;
});
}