Compare commits

..

1 commit

Author SHA1 Message Date
f6ba3c1516
fix(report): use nix eval to list the components
All checks were successful
/ check (treefmt) (push) Successful in 3s
/ report-size (push) Successful in 2s
/ report-download-check (push) Successful in 1s
/ report-size-pr (pull_request) Successful in 2s
/ report-download-check-pr (pull_request) Successful in 1s
This is less error prone than parsing the information from `nix flake
show`.
2025-07-13 18:45:59 +02:00

View file

@ -11,7 +11,7 @@ system=$(nix eval --impure --json --expr 'builtins.currentSystem')
# Extract the names of a flake attrset
get_names() {
nix eval --json --apply builtins.attrNames "$1"
nix eval --json --apply builtins.attrNames "$1" 2>/dev/null || echo '[]'
}
group "Show Packages for $system"