[Nix-dev] Re: nix-store --gc doesn't honor gc-keep-outputs

Peter Simons simons at cryp.to
Tue Dec 22 13:40:42 CET 2009


Hi Lluís,

 > I think nix will check for /etc/nix.conf or /etc/nix/nix.conf.
 > I don't think it will read the configuration from the profile.

note that I passed the gc-keep-outputs option on the command-line in my
experiments:

  peter at binx:~/.nix-defexpr$ nix-build -A aterm25.src
  /home/peter/.nix/store/kylbqbscm6mn4jkrcbn65fbjpdr5d7g9-aterm-2.5.tar.gz

  peter at binx:~/.nix-defexpr$ nix-build -A aterm25
  the following derivations will be built:
    /home/peter/.nix/store/7x1wsx8pswprk6rb0v87cf9k4va9293j-aterm-2.5.drv
  building path(s) `/home/peter/.nix/store/4wkga4qcwxyp0gfiv8p1qpdszh2wxxb9-aterm-2.5'
  [...]
  scanning for references inside `/home/peter/.nix/store/4wkga4qcwxyp0gfiv8p1qpdszh2wxxb9-aterm-2.5'
  /home/peter/.nix/store/4wkga4qcwxyp0gfiv8p1qpdszh2wxxb9-aterm-2.5

  peter at binx:~/.nix-defexpr$ nix-store --delete /home/peter/.nix/store/kylbqbscm6mn4jkrcbn65fbjpdr5d7g9-aterm-2.5.tar.gz --option gc-keep-outputs true
  finding garbage collector roots...
  removing stale link from `/home/peter/.nix/var/nix/gcroots/auto/xlllqwbrjr2bshjchadm51q082flzn5x' to `/a/roast/vol/vol0/home/peter/nix-pkgs/.nix-build-tmp-derivation'
  deleting `/home/peter/.nix/store/kylbqbscm6mn4jkrcbn65fbjpdr5d7g9-aterm-2.5.tar.gz'
  1 store paths deleted, 830158 bytes (0.79 MiB, 1632 blocks) freed

Take care,
Peter




More information about the nix-dev mailing list