flake.nix 775 B

1234567891011121314151617181920212223242526
  1. {
  2. description = "Neovim configuration";
  3. inputs = {
  4. nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  5. flake-utils.url = "github:numtide/flake-utils";
  6. };
  7. outputs = { self, nixpkgs, flake-utils }:
  8. flake-utils.lib.eachDefaultSystem (system:
  9. let
  10. pkgs = import nixpkgs {
  11. inherit system;
  12. overlays = [(final: prev: {
  13. node-lsp = final.callPackage ./node-lsp {};
  14. })];
  15. };
  16. in
  17. {
  18. packages.neovim = pkgs.callPackage ./neovim.nix {};
  19. packages.neovim-with-luadev = pkgs.callPackage ./neovim.nix { withLuadev = true; };
  20. packages.neovim-minimal = (pkgs.callPackage ./neovim.nix {}).minimal;
  21. packages.default = self.packages.${system}.neovim;
  22. }
  23. );
  24. }