forked from extern/flakelight
efcf01325b
Since the formatter always depended on devShell packages, building the formatter involved building all the devShell packages, which can be slow. In the case where formatters are set to plain strings, such as "nixpkgs-fmt", depending on the devShell packages is necessary in order to put the formatting utility on the path. But when a formatters option is set to an package, such as "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt", then that formatter option does not depend on the devShell packages. Flakelight now detects if any of the configured formatters are using the first form, and only if so does it add the devShell packages dependency. This allows the first form to still work, without incurring a cost for flakes that only use the second form. Users can use the second form for all formatters options if they wish to not build the devShell packages when using the formatter. |
||
---|---|---|
.. | ||
apps.nix | ||
builtinFormatters.nix | ||
builtinOverlay.nix | ||
bundlers.nix | ||
checks.nix | ||
core.nix | ||
devShells.nix | ||
editorconfig.nix | ||
flakelightModules.nix | ||
formatter.nix | ||
functor.nix | ||
homeConfigurations.nix | ||
homeModules.nix | ||
legacyPackages.nix | ||
lib.nix | ||
moduleArgs.nix | ||
nixDir.nix | ||
nixosConfigurations.nix | ||
nixosModules.nix | ||
overlays.nix | ||
packages.nix | ||
propagationModule.nix | ||
templates.nix |