Closed svenkeidel closed 8 years ago
Third solution, rewrite this script in elisp.
I'm also couching for the first solution. But the second one is also okay if you desperately need it On Dec 18, 2015 3:54 PM, "Sven Keidel" notifications@github.com wrote:
Third solution, rewrite this https://github.com/NixOS/nix/blob/master/scripts/nix-build.in script in elisp.
— Reply to this email directly or view it on GitHub https://github.com/travisbhartwell/nix-emacs/issues/21#issuecomment-165895751 .
FWIW, same thoughts as @CestDiego.
I use
nix-sandbox.el
at work and encountered an issue. After a few hours of work, my machine told me that my disk space is nearly full. As it turns out, it was the/nix/store
directory, so I did anix-collect-garbage
and cleaned up ~80Gb disk space. After a few hours more, the issue reappeared. The reason for this massive growth in space are successive calls tonix-shell --run ...
. Each call creates a new derivation, which then takes up some space on disk and doesn't get deleted afternix-shell
exits.So question is, how do we fix this? I see the following solutions:
nix-shell --run
calls.nix-shell
call overhead.I for my part am in favor of the first solution. I also would do the development effort since I'm in a desperate need for a solution. What is your opinion?
Best, Sven