1
0

flake.nix 989 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. description = "Neovim configuration";
  3. inputs = {
  4. nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  5. };
  6. outputs = { self, nixpkgs }:
  7. let
  8. withPkgs = system: import nixpkgs {
  9. inherit system;
  10. overlays = [(final: prev: {
  11. treesitter = prev.treesitter.override {
  12. extraGrammars = [
  13. (final.fetchFromGitHub {
  14. owner = "ckafi";
  15. repo = "tree-sitter-elvish";
  16. rev = "f32711e31e987fd5c2c002f3daba02f25c68672f";
  17. hash = "sha256-/3npcIfTH8w5ekLTb//ZCTxuSGhOXkUBaCq3WWcK2J4=";
  18. })
  19. ];
  20. };
  21. })];
  22. };
  23. in
  24. {
  25. packages.x86_64-linux.neovim = (withPkgs "x86_64-linux").callPackage ./neovim.nix {};
  26. packages.x86_64-linux.neovim-with-playground = (withPkgs "x86_64-linux").callPackage ./neovim.nix { withPlayground = true; };
  27. packages.x86_64-linux.default = self.packages.x86_64-linux.neovim;
  28. };
  29. }