Compare commits
1 commit
63db4337cf
...
e256fef105
Author | SHA1 | Date | |
---|---|---|---|
e256fef105 |
2 changed files with 4 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,4 @@
|
|||
result
|
||||
result-*
|
||||
.direnv/
|
||||
.pre-commit-config.yaml
|
||||
# ignore vm images
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
create_table() {
|
||||
packages=$(nix flake show --json 2>/dev/null | jq --raw-output '.packages."x86_64-linux" | ".#" + keys[]')
|
||||
# we want to split the words as each of them is a different installable
|
||||
# shellcheck disable=SC2086
|
||||
nix build $packages
|
||||
# shellcheck disable=SC2086
|
||||
# shellcheck disable=SC2046
|
||||
table=$(nix path-info --size --closure-size --human-readable \
|
||||
$packages |
|
||||
$(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
|
||||
|
@ -17,9 +12,7 @@ create_table() {
|
|||
EOF
|
||||
}
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
tea login add --url "$GITHUB_SERVER_URL" --token "$GITHUB_TOKEN"
|
||||
tea pulls list
|
||||
fi
|
||||
tea login add --url "$GITHUB_SERVER_URL" --token "$GITHUB_TOKEN"
|
||||
tea pulls list
|
||||
|
||||
create_table
|
||||
|
|
Loading…
Add table
Reference in a new issue