From c278449e3df916f85b5dc2db8373e8f80628aa51 Mon Sep 17 00:00:00 2001 From: Marcin Szamotulski Date: Mon, 30 Sep 2024 20:37:03 +0200 Subject: [PATCH] nix: nix build .\#format.all Added a convenient way to run all formatters. --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 34b20462e6..e8712e2b26 100644 --- a/flake.nix +++ b/flake.nix @@ -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;