Skip to content

nix: build all components#5365

Open
coot wants to merge 2 commits intomainfrom
coot/nix-all
Open

nix: build all components#5365
coot wants to merge 2 commits intomainfrom
coot/nix-all

Conversation

@coot
Copy link
Copy Markdown
Collaborator

@coot coot commented May 8, 2026

Description

See ./CONTRIBUTING.md for changes.

  • run-nixpkgs-fmt: find fd program
  • nix: add 'all' aggregate jobs for cross-compilation and variant sub-groups

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

coot and others added 2 commits May 8, 2026 14:37
…roups

Adds `pkgs.releaseTools.aggregate` derivations so all components in a
given sub-group can be built with a single command:

  nix build .\#hydraJobs.x86_64-linux.x86_64-w64-mingw32.all
  nix build .\#hydraJobs.x86_64-linux.ghc982.all
  nix build .\#hydraJobs.x86_64-linux.all
  nix build .\#hydraJobs.aarch64-darwin.all

Sub-groups (cross-compilation targets and compiler variants) are detected
by checking that their values contain nested attrsets rather than
derivations directly, which distinguishes them from the native job
categories (packages, checks, …).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coot coot requested review from a team as code owners May 8, 2026 12:43
@coot coot added the nix This includes CI, nix changes or cabal dependencies label May 8, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in Ouroboros Network May 8, 2026
@coot
Copy link
Copy Markdown
Collaborator Author

coot commented May 8, 2026

For example nix build .\#hydraJobs.x86_64-linux.x86_64-mingw32.all results in:

> sed 's/ /\n/g' result/nix-support/hydra-aggregate-constituents
/nix/store/5523qjamlifz1c87n2dhgjdmb2s1zmdj-ouroboros-network-test-framework-sim-tests-x86_64-w64-mingw32-1.1.0.0-check-x86_64-w64-mingw32
/nix/store/b3j2xpc5mxamqm8vldqqyl9xmq6af11h-ouroboros-network-test-ouroboros-network-sim-tests-x86_64-w64-mingw32-1.1.0.0-check-x86_64-w64-mingw32
/nix/store/rfsaaaan6pzv1aqyc59sq66aq904ggli-ghc-shell-for-packages-x86_64-w64-mingw32
/nix/store/fwpx1f4i97l3gzy1dckq1gdm0j1ic815-acts-generic-lib-acts-generic-x86_64-w64-mingw32-0.1.1.0
/nix/store/kblxac6wca1ijxcadvd5n067f9ps8rcr-cardano-diffusion-exe-demo-chain-sync-x86_64-w64-mingw32-1.0.0.0
/nix/store/p4slkvmaf45x8kx7gn449bzw1yzl11v5-cardano-diffusion-lib-api-x86_64-w64-mingw32-1.0.0.0
/nix/store/qgkw986ijdqsf8qhdg7i94zwf6l4sz5j-cardano-diffusion-lib-api-tests-lib-x86_64-w64-mingw32-1.0.0.0
/nix/store/i0mc6w6kb9n61cb2yrxwidj3p9a8797n-cardano-diffusion-lib-cardano-diffusion-x86_64-w64-mingw32-1.0.0.0
/nix/store/p64visvp9455w2lvl7szq0y6s9k78b6d-cardano-diffusion-lib-cardano-diffusion-tests-lib-x86_64-w64-mingw32-1.0.0.0
/nix/store/bpj4q8j7vhc61myrq6hd6s0aa8i6z0xy-cardano-diffusion-lib-orphan-instances-x86_64-w64-mingw32-1.0.0.0
/nix/store/xiqniinyash2abnwhrxfqs3lxzy8hn09-cardano-diffusion-lib-protocols-x86_64-w64-mingw32-1.0.0.0
/nix/store/ccv30b88gqa1kqshfhqkyahkd6jssz3q-cardano-diffusion-lib-protocols-tests-lib-x86_64-w64-mingw32-1.0.0.0
/nix/store/kjky6pyysmskaa8cxd8w6xxf6w3pb4ig-cardano-diffusion-lib-subscription-x86_64-w64-mingw32-1.0.0.0
/nix/store/kvfw8a7brba3871a38dn14bgalx07nrk-cardano-diffusion-lib-tracing-x86_64-w64-mingw32-1.0.0.0
/nix/store/gci4j5rr29k8yisvqyk6iw6zdwdjbdq3-cardano-diffusion-test-api-tests-x86_64-w64-mingw32-1.0.0.0
/nix/store/554lfaxaccl8a5x2cm8lw0r6917dzcnb-cardano-diffusion-test-cardano-diffusion-sim-tests-x86_64-w64-mingw32-1.0.0.0
/nix/store/nmynz2i1kyk6684ayrjwzqk5wyk05izf-cardano-diffusion-test-protocols-bench-x86_64-w64-mingw32-1.0.0.0
/nix/store/bv44n3nkbhrr2mmfglyrl93akiyckk2b-cardano-diffusion-test-protocols-tests-x86_64-w64-mingw32-1.0.0.0
/nix/store/wyv6xm0axm4wzfg2q7zr0rdyb93pfwvk-cardano-ping-lib-cardano-ping-x86_64-w64-mingw32-0.10.2.0
/nix/store/dbcgbmafnf91bwd0wsirx283nk7n99d3-monoidal-synchronisation-lib-monoidal-synchronisation-x86_64-w64-mingw32-0.1.0.7
/nix/store/bn54bmkp51nj127ynyxbg5dfh2c61h0l-monoidal-synchronisation-test-test-x86_64-w64-mingw32-0.1.0.7
/nix/store/irpj195i0riffjr9fy2zjy1gfrdxwdsj-network-mux-bench-socket-read-write-benchmarks-x86_64-w64-mingw32-0.10.1.0
/nix/store/agkxqszz51cds7kzlanwn0wrd1rsxcpa-network-mux-exe-mux-demo-x86_64-w64-mingw32-0.10.1.0
/nix/store/x315fcn38zca9vfcw12sgqhp5a20ybbk-network-mux-exe-mux-leios-demo-x86_64-w64-mingw32-0.10.1.0
/nix/store/2ypwrvsbirlpnhwpyga55ricvbg81zrx-network-mux-lib-network-mux-x86_64-w64-mingw32-0.10.1.0
/nix/store/gw0329qgqawy1a6d1hwiv10hrka9x1sp-network-mux-test-test-x86_64-w64-mingw32-0.10.1.0
/nix/store/sa9gwld4kl71kf923p8ac64zjrszrq0r-ntp-client-exe-demo-ntp-client-x86_64-w64-mingw32-0.0.1.8
/nix/store/dcfi5kjia49k98im9w2hm6zndar5iqqa-ntp-client-lib-ntp-client-x86_64-w64-mingw32-0.0.1.8
/nix/store/ikdam4rrx0yz6xv63n0jn16dmnn6k2b6-ntp-client-test-test-x86_64-w64-mingw32-0.0.1.8
/nix/store/s94z3qqxb95finjn19wagzam8iamkr4l-ouroboros-network-bench-api-bench-x86_64-w64-mingw32-1.1.0.0
/nix/store/4zq7y4qj9q9iq4vhg5825pnmqdl65jnr-ouroboros-network-bench-sim-benchmarks-x86_64-w64-mingw32-1.1.0.0
/nix/store/lwif93nm9hx76ykb7sw3cdg25gc0x8a1-ouroboros-network-exe-demo-connection-manager-x86_64-w64-mingw32-1.1.0.0
/nix/store/cjwz9asn3q8w84jnh4z1vmgw903zjnlv-ouroboros-network-exe-demo-ping-pong-x86_64-w64-mingw32-1.1.0.0
/nix/store/78vm332nsbjzxm0wxpfbq44y4pnafmz8-ouroboros-network-lib-api-x86_64-w64-mingw32-1.1.0.0
/nix/store/qv2lvqphq6zrzlniama3pfj4p4sqm327-ouroboros-network-lib-api-tests-lib-x86_64-w64-mingw32-1.1.0.0
/nix/store/92rwk8zi02ylbpi9379si2jr3jsfbzcl-ouroboros-network-lib-framework-x86_64-w64-mingw32-1.1.0.0
/nix/store/jw3haxmxbjd6ss6kky4sqhc1bgm9b8cj-ouroboros-network-lib-framework-tests-lib-x86_64-w64-mingw32-1.1.0.0
/nix/store/irg6qp8dxjn9d174q07bxalrfrgnfbpd-ouroboros-network-lib-orphan-instances-x86_64-w64-mingw32-1.1.0.0
/nix/store/79janfj2baqwrj71f2pifgdma88mlamk-ouroboros-network-lib-ouroboros-network-x86_64-w64-mingw32-1.1.0.0
/nix/store/sh66fq4phfcz03pdihx3jv7qf8sc49fb-ouroboros-network-lib-ouroboros-network-tests-lib-x86_64-w64-mingw32-1.1.0.0
/nix/store/v9lg0prask4nhyh9a7f4asxbzf6q3h48-ouroboros-network-lib-protocols-x86_64-w64-mingw32-1.1.0.0
/nix/store/f33yjpin5js72qcyd5c9kc15ihjsj1xy-ouroboros-network-lib-protocols-tests-lib-x86_64-w64-mingw32-1.1.0.0
/nix/store/361ka3d443q08l65zd9wsbhyyqddrnnq-ouroboros-network-lib-tests-lib-x86_64-w64-mingw32-1.1.0.0
/nix/store/2qxdxskx58vrpnc19gj603bbcbmnkg1p-ouroboros-network-lib-tracing-x86_64-w64-mingw32-1.1.0.0
/nix/store/lcjb2c5wvkgxyx7k4yf0f48p1ywc3w42-ouroboros-network-test-api-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/clgr9im7yy86zmaywjywnnswxf6akfvw-ouroboros-network-test-framework-io-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/dxfs5ld8lwhj4vs3m20nvix6dysx7xnv-ouroboros-network-test-framework-sim-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/6w8yjrl37js4ay523iwcigrzq1id20b0-ouroboros-network-test-ouroboros-network-io-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/z1j64w9cqhn75mpb9wlzxw45rwq3y395-ouroboros-network-test-ouroboros-network-sim-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/qmdh1qnc1dmghq6ivl1yf687yjwbx12g-ouroboros-network-test-protocols-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/3igjshb0pr6bg57fyza2vrf9h8an8kji-ouroboros-network-test-tests-lib-tests-x86_64-w64-mingw32-1.1.0.0
/nix/store/dqfaz953vmk0zbmff6zmaj9mp3kr4xns-ouroboros-network-plan-to-nix-pkgs
/nix/store/w818z8sxcv6pwv7g4hkmrlw1k3kcyd8h-haskell-nix-roots-ghc966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nix This includes CI, nix changes or cabal dependencies

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant