flake.nix 554 B

12345678910111213141516171819
  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. };
  11. in
  12. {
  13. packages.x86_64-linux.neovim = (withPkgs "x86_64-linux").callPackage ./neovim.nix {};
  14. packages.x86_64-linux.neovim-with-playground = (withPkgs "x86_64-linux").callPackage ./neovim.nix { withPlayground = true; };
  15. packages.x86_64-linux.default = self.packages.x86_64-linux.neovim;
  16. };
  17. }