Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # Get a store path:
  2. nix-instantiate --eval -E 'with import <nixpkgs>{}; "${hello}"'
  3.  
  4. # List biggest things in /nix/store:
  5. for x in /nix/store/*/; do echo $(nix-store --query --size $x) $x;done | sort -n
  6.  
  7. # Create a GC root:
  8. # this will create a new root in the current dir, for the current llvm
  9. # and now gc will never delete it, until you remove saved-llvm
  10. nix-build '<nixpkgs>' -A llvm -o saved-llvm
  11.  
  12. # Why can't I delete something? This lists why it wont be deleted:
  13. nix-store --query --roots /nix/store/thing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement