1{ stdenv, writeScript, coreutils, gawk, nix
8writeScript "check-closure-size.sh" ''
13 export PATH="${makeBinPath [ coreutils gawk nix ]}"
16 du -scm $(nix-store -qR $1) | sort -n | tail -n25
19 nt="$(get_closure_size ${nix-tools})"
23 total=$(awk '$2 == "total" { print $1; }' <<< "$nt")
25 if [ $total -gt ${toString limitMB} ]; then
26 echo "Closure size exceeds limit of ${toString limitMB}MB!"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list