blob: eb9d7ef0c3067fb6a40c59b3ca87b8ea31d52b4f (
plain) (
tree)
|
|
#!/usr/bin/env bash
for link in $(find -H /nix/var/nix/gcroots -type l); do
ref=$(realpath $link)
sizeinfo=$(nix path-info -rS $ref | sort -nk2 | tail -n 1)
echo "$link $sizeinfo"
done | sort -nk3
|