This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/flake.nix

39 lines
833 B
Nix

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