Skip to content

Commit

Permalink
nix: nix build .\#format.all
Browse files Browse the repository at this point in the history
Added a convenient way to run all formatters.
  • Loading branch information
coot committed Sep 30, 2024
1 parent 8c37338 commit c278449
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,17 @@
# Provide hydraJobs through legacyPackages to allow building without system prefix, e.g.
# `nix build .\#network-mux:lib:network-mux`
# `nix build .\#network-docs`
legacyPackages = { inherit hydraJobs network-docs format; };
legacyPackages = {
inherit hydraJobs network-docs;
format = format
// {
all = pkgs.releaseTools.aggregate {
name = "network-format";
meta.description = "Run all formatters";
constituents = lib.collect lib.isDerivation format;
};
};
};
in
lib.recursiveUpdate flake rec {
project = pkgs.ouroboros-network;
Expand Down

0 comments on commit c278449

Please sign in to comment.