Don't pull chromium into the dev shell for sol-only repos
The current nix develop shell pulls a chromium derivation. For repos that only need the Solidity toolchain (no JS/Rust/wasm), chromium is dead weight: large download, large nix store footprint, slow first-time bootstrap, and even with cache hits the closure adds substantial bytes that have to be extracted/linked.
Where it bites
- First-time CI runs on a cold cache spend a long time fetching chromium (and its transitive deps).
- Local dev — every contributor on a clean machine pays the same one-time cost just to enter the shell, even when they're only editing Solidity.
- Cache size — chromium and its closure dominate the rainix cache footprint by a wide margin.
What I'd like
Split the rainix dev shell so sol-only repos can opt into a slimmer environment. Either:
- A separate
rainix-sol-shell (or attribute / overlay) that has forge, slither, reuse, solc, nixpkgs essentials, but no chromium / playwright / npm / cargo / wasm-bindgen.
- Make chromium an opt-in via a flake input or feature flag, rather than the default.
Repos that would benefit
Every Rain repo whose CI is rainix-sol-{test,static,legal} only — i.e. doesn't touch JS or Rust:
- rain.solmem
- rain.math.binary
- rain.math.saturating
- rain.deploy
- rain.datacontract
- rain.string
- rain.sol.codegen
- rain.math.fixedpoint
That's most of the rainlanguage Solidity ecosystem.
Don't pull chromium into the dev shell for sol-only repos
The current
nix developshell pulls a chromium derivation. For repos that only need the Solidity toolchain (no JS/Rust/wasm), chromium is dead weight: large download, large nix store footprint, slow first-time bootstrap, and even with cache hits the closure adds substantial bytes that have to be extracted/linked.Where it bites
What I'd like
Split the rainix dev shell so sol-only repos can opt into a slimmer environment. Either:
rainix-sol-shell(or attribute / overlay) that hasforge,slither,reuse,solc,nixpkgsessentials, but no chromium / playwright / npm / cargo / wasm-bindgen.Repos that would benefit
Every Rain repo whose CI is
rainix-sol-{test,static,legal}only — i.e. doesn't touch JS or Rust:That's most of the rainlanguage Solidity ecosystem.