flake.nix 875 B

123456789101112131415161718192021222324252627
  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-playground = pkgs.callPackage ./neovim.nix { withPlayground = true; };
  20. packages.neovim-with-luadev = pkgs.callPackage ./neovim.nix { withLuadev = true; };
  21. packages.neovim-minimal = (pkgs.callPackage ./neovim.nix {}).minimal;
  22. packages.default = self.packages.${system}.neovim;
  23. }
  24. );
  25. }