Jalil David Salamé Messina
755321ed2c
All checks were successful
/ check (push) Successful in 49s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 3s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 19s
/ build (nvim) (push) Successful in 10s
/ report-size (pull_request) Successful in 23s
Added as a comment to the current pull request
18 lines
547 B
Bash
Executable file
18 lines
547 B
Bash
Executable file
create_table() {
|
|
# we want to split the words as each of them is a different installable
|
|
# shellcheck disable=SC2046
|
|
table=$(nix path-info --size --closure-size --human-readable \
|
|
$(nix flake show --json 2>/dev/null | jq --raw-output '.packages."x86_64-linux" | ".#" + keys[]') |
|
|
sed 's/^\(\S\+\)\(\s\+\)\(\S\+\)\(\s\+\)\(\S\+\)$/| \1\2| \3 | \4\5 |/')
|
|
|
|
cat <<-EOF
|
|
| Nix Store Path | NAR Size | Closure Size |
|
|
|----------------|---------:|-------------:|
|
|
$table
|
|
EOF
|
|
}
|
|
|
|
tea login --token "$GITHUB_TOKEN"
|
|
tea pulls list
|
|
|
|
create_table
|