nixos-config/size.sh
2024-08-04 13:49:59 +03:00

5 lines
134 B
Bash
Executable File

#!/usr/bin/env bash
nix-store -q --size $(nix-store -qR $(readlink -e $1) ) | \
awk '{ a+=$1 } END { print a }' | \
numfmt --to=iec-i