You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading this, this and this, I still can't figure out how to prevent flake devShell dependencies from being garbage collected by nix store gc. M(N)WE:
cabal-version: 1.12
name: test
version: 1.0.0build-type: Simple
$ nix develop . --profile nixenv
$ nix store gc129 store paths deleted, 1551.01 MiB freed
BTW if the proj.roots line is removed, the garbage is even larger:
188 store paths deleted, 3325.91 MiB freed
Usually this isn't a huge problem because only the flake inputs are GC'd (mostly nixpkgs), but with haskell.nix the collected garbage is much larger and seems not limited to flake inputs (I might be wrong). Can someone provide a minimal example where nothing is GC'd?
The text was updated successfully, but these errors were encountered:
After reading this, this and this, I still can't figure out how to prevent flake devShell dependencies from being garbage collected by
nix store gc
. M(N)WE:flake.nix
test.cabal
BTW if the
proj.roots
line is removed, the garbage is even larger:188 store paths deleted, 3325.91 MiB freed
Usually this isn't a huge problem because only the flake inputs are GC'd (mostly nixpkgs), but with haskell.nix the collected garbage is much larger and seems not limited to flake inputs (I might be wrong). Can someone provide a minimal example where nothing is GC'd?
The text was updated successfully, but these errors were encountered: