1
0

flake.nix 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. description = "Neovim configuration";
  3. inputs = {
  4. nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  5. flake-utils.url = "github:numtide/flake-utils";
  6. blink-cmp = {
  7. url = "github:Saghen/blink.cmp";
  8. inputs.nixpkgs.follows = "nixpkgs";
  9. };
  10. };
  11. outputs = { self, nixpkgs, flake-utils, blink-cmp }:
  12. flake-utils.lib.eachDefaultSystem (system:
  13. let
  14. pkgs = import nixpkgs {
  15. inherit system;
  16. overlays = [(final: prev: {
  17. node-lsp = final.callPackage ./node-lsp {};
  18. blink-cmp = blink-cmp.packages.${system}.blink-cmp;
  19. neovim-unwrapped = prev.neovim-unwrapped.overrideAttrs (attrs: attrs // {
  20. patches = (attrs.patches or []) ++ [
  21. # fix floating windows not closing when going to another file
  22. ./neovim-34946.patch
  23. ];
  24. });
  25. })];
  26. };
  27. in
  28. {
  29. packages.neovim = pkgs.callPackage ./neovim.nix {};
  30. packages.neovim-minimal = (pkgs.callPackage ./neovim.nix {}).minimal;
  31. packages.default = self.packages.${system}.neovim;
  32. }
  33. );
  34. }