feature/build-cache #35
@ -6,10 +6,16 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# retrieve all paths under 2G
|
# retrieve all paths under 2G
|
||||||
|
# nix_paths=$(nix path-info --json --all --closure-size \
|
||||||
|
# | jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \
|
||||||
|
# | jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
||||||
|
|
||||||
|
# retrieve all paths
|
||||||
nix_paths=$(nix path-info --json --all --closure-size \
|
nix_paths=$(nix path-info --json --all --closure-size \
|
||||||
| jq 'map_values(.closureSize | select(. < 2e9)) | to_entries | sort_by(.value)' \
|
| jq 'map_values(.closureSize | select(true)) | to_entries | sort_by(.value)' \
|
||||||
| jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
| jq 'map(.key) | join("\n")' | sed -E -e 's/\\n/\n/g;s/^"//g;s/"$//g')
|
||||||
|
|
||||||
|
|
||||||
readarray -t nix_path_array < <(echo "$nix_paths")
|
readarray -t nix_path_array < <(echo "$nix_paths")
|
||||||
|
|
||||||
batchsize=1000
|
batchsize=1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user