Skip to content

Add a gcroots output so GC doesn't take the toolchains - #18

Merged
thomasjm merged 1 commit into
masterfrom
gcroots
Oct 16, 2026
Merged

thomasjm merged 1 commit into
masterfrom
gcroots

Conversation

@thomasjm

Copy link
Copy Markdown
Contributor

Adds a gcroots output so nix-collect-garbage can run on a dev machine without throwing away the toolchains. Build it and keep a symlink to the result:

nix build -o /path/to/gcroots .#gcroots

The closure holds the native GHC, the musl cross GHC (built from source, so the expensive one), every Haskell library in the build plan, and the devShell's inputs — 9.4 GiB for rnls. Same shape as the output haskell-notebook-language-server already had.

The devShell's buildInputs moved into a devShellInputs binding so both outputs can name the same list.

@thomasjm
thomasjm merged commit de259a8 into master Oct 16, 2026
3 checks passed
@thomasjm
thomasjm deleted the gcroots branch October 16, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant