Only save relevant packages from intel repo

Refactored the parsing and dependency resolution logic into a single
Haskell script.
This commit is contained in:
2026-03-19 17:46:55 +01:00
parent a2a3c3c81f
commit a5a0391b9c
8 changed files with 1260 additions and 280 deletions

View File

@@ -7,5 +7,4 @@ trap 'rm -f "$out_64" "$out_all"' EXIT INT HUP
curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-amd64/Packages -o "$out_64"
curl https://apt.repos.intel.com/oneapi/dists/all/main/binary-all/Packages -o "$out_all"
# NOTE: we use `jq -r tostring` to minify the json (3.2Mb -> 2.3Mb)
cat "$out_64" "$out_all" | ./toJson.awk | ./process.jq | jq -r tostring >packages.json
cat "$out_64" "$out_all" | runghc ./update.hs 2023.1.0 2024 2025 >packages.toml