mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
The version and the per-platform asset names and hashes become data, replacing the two if/else chains that selected them. A following commit adds an update script, which can then rewrite JSON instead of Nix. meta.platforms is derived from the asset list, so the two cannot drift, and meta.changelog can be built from the same data. The fetchurl calls move from derivation attributes into let bindings; they were only ever used through string interpolation in installPhase, so being attributes just put their store paths in the build environment. Assisted-by: Claude Code (Claude Opus 5)
29 lines
748 B
JSON
29 lines
748 B
JSON
{
|
|
"repo": "scalacenter/bloop",
|
|
"version": "2.1.1",
|
|
"completions": {
|
|
"bash": {
|
|
"asset": "bash-completions",
|
|
"hash": "sha256-2mt+zUEJvQ/5ixxFLZ3Z0m7uDSj/YE9sg/uNMjamvdE="
|
|
},
|
|
"fish": {
|
|
"asset": "fish-completions",
|
|
"hash": "sha256-RF6nZxbw4sLwCP4irKJLYCZnlkaRdEkmpYkOHBoSF/8="
|
|
},
|
|
"zsh": {
|
|
"asset": "zsh-completions",
|
|
"hash": "sha256-WNMsPwBfd5EjeRbRtc06lCEVI2FVoLfrqL82OR0G7/c="
|
|
}
|
|
},
|
|
"assets": {
|
|
"aarch64-darwin": {
|
|
"asset": "bloop-aarch64-apple-darwin",
|
|
"hash": "sha256-OrONKbC2l0jjfmguDmoiyEaJWdTrKBiP0ZEa5rhizDM="
|
|
},
|
|
"x86_64-linux": {
|
|
"asset": "bloop-x86_64-pc-linux",
|
|
"hash": "sha256-F5wRihAwf/TNBSYortTCoK9qKqTI+1N5InJ+rqLFp8A="
|
|
}
|
|
}
|
|
}
|