Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to add nix dependencies as nix GC roots #2514

Merged
merged 2 commits into from
Aug 23, 2016
Merged

Conversation

YPares
Copy link
Collaborator

@YPares YPares commented Aug 18, 2016

This PR makes it easier to use stack nix with small disk spaces or low bandwidth internet.
Nix provides a command that removes all the packages that aren't registered as nix GC roots: nix-collect-garbage.
This PR gives you an option to tell stack to call nix-shell with the option to register the packages as GC roots. This way, you can run nix-collect-garbage to remove old packages you don't need anymore and nix will preserve your current depedencies, so you don't have to re-download them again.

@mgsloan
Copy link
Contributor

mgsloan commented Aug 20, 2016

LGTM. Want to review, @borsboom ?

@mboes
Copy link
Contributor

mboes commented Aug 23, 2016

LGTM. Make sure to add a Changelog entry though. :)

@YPares YPares merged commit 8619824 into master Aug 23, 2016
@Blaisorblade Blaisorblade deleted the nix-add-gc-roots branch August 24, 2016 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants