nix-community.nixvim/flake-modules
Matt Sturgeon 4e5bd1d79b
lib: segregate and deprecate functions that need pkgs
Splits everything that depends on a `pkgs` instance into an optional
attrs, allowing `helpers.nix` to be bootstrapped without `pkgs`.

This required some refactoring:
- `modules.specialArgs` is only available when `pkgs` is used
- `modules.specialArgsWith` now requires `defaultPkgs` be provided
- `builders.*` now have `*With` variants that take `pkgs` as an argument
  and a `withPkgs` function that returns the old interface
- Had to define the fixed part of `builders` outside the attrs for now,
  to avoid infinite recursion.
- The old `builders` are now deprecated, and print a warning when
  evaluated
- `withOptoinalFns` was introduced to merge the optional attrs into the
  final lib.
2024-09-13 19:05:26 +01:00
..
dev flake/treefmt: disable taplo for now 2024-09-13 10:08:08 -05:00
default.nix lib: rename helpers.nix -> default.nix 2024-09-13 17:25:17 +01:00
legacy-packages.nix flake/legacyPackages: simplify makeNixvim, making it more powerful 2024-06-29 22:15:45 +01:00
lib.nix lib: rename helpers.nix -> default.nix 2024-09-13 17:25:17 +01:00
overlays.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
packages.nix docs: move pkgs overlays to their own file 2024-09-13 12:26:48 +01:00
templates.nix treewide: Reformat with nixfmt 2024-05-05 22:00:40 +02:00
tests.nix lib: segregate and deprecate functions that need pkgs 2024-09-13 19:05:26 +01:00
wrappers.nix modules/performance: add ability to byte compile lua configuration files 2024-07-31 11:31:40 +00:00