Files
hammer/recipes/incoming/topgrade.toml
T
sergioandClaude Opus 4.8 ce0cf8762e Etapa G: pre-carga cola para granja nocturna — cli-rust-7 (6 vía Alpine) → incoming 21
tandas/cli-rust-7.txt (24 nombres, yield 6/24: yazi/topgrade/kalker/git-absorb/jless/tuc;
el path nix dio 0 por el gotcha de sandbox, solo Alpine). Cola incoming=21 para drenar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 01:13:57 -04:00

48 lines
1.9 KiB
TOML

# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
name = "topgrade"
version = "17.6.1"
[source]
tarball = "https://github.com/topgrade-rs/topgrade/archive/refs/tags/v17.6.1.tar.gz"
# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
# sha512 = "4473e971a3c744ce4f07096c7b6e38d384b2d1eb8698cfa26bd6018c361a667f971f14410d265b2c82119d805485c9247d4d16465dc0e7e2b4b5f7b4529b600b"
sha256 = "c25274461f61b8fa469c1645a892bb5b52236bb64dc448152c6f485f9ec1cb1d"
[build]
compiler = "zig-cc"
target = "x86_64-linux-musl"
link = "static"
flags = []
[build.phases]
# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
compile = '''
_abuild_phase() {
cargo auditable build --release --frozen
target/release/topgrade --gen-completion bash > topgrade.bash
target/release/topgrade --gen-completion fish > topgrade.fish
target/release/topgrade --gen-completion zsh > _topgrade
target/release/topgrade --gen-manpage > topgrade.8
}
_abuild_phase
'''
# de package() de Alpine (traducido $pkgdir→/out):
install = '''
_abuild_phase() {
install -Dm755 target/release/topgrade "/out"/usr/bin/topgrade
install -Dm644 LICENSE "/out"/usr/share/licenses/topgrade/LICENSE
install -Dm644 topgrade.bash "/out"/usr/share/bash-completion/completions/topgrade
install -Dm644 topgrade.fish "/out"/usr/share/fish/vendor_completions.d/topgrade.fish
install -Dm644 _topgrade "/out"/usr/share/zsh/site-functions/_topgrade
install -Dm644 config.example.toml "/out"/usr/share/doc/topgrade/config.example.toml
install -Dm644 topgrade.8 "/out"/usr/share/man/man8/topgrade.8
}
_abuild_phase
'''