Files
hammer/recipes/incoming/cargo-c.toml
T
sergioandClaude Opus 4.8 465adc1374 Etapa G: fuel-go-2 + restos fuel-6+7 — recarga el VPS de 4 cores
Estrena el VPS repotenciado (CCX23, 4 cores/16GB, disco saneado 94->54%).
Cola 43: 28 Go nuevas (import 31/32 automatico is_go; age/sops/k9s/ffuf/
nuclei/gitleaks/dasel/vegeta/frp/chisel/lf/sttr/usql/subfinder/katana/...)
+ 15 restos Rust de fuel-6+7 (oxipng/grass/tokio-console/cargo-c/...).
syft/grype/gf a hold (vinieron de alpine, sin plantilla Go).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 14:29:20 -04:00

41 lines
1.4 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 = "cargo-c"
version = "0.10.23"
[source]
tarball = "https://github.com/lu-zero/cargo-c/archive/v0.10.23.tar.gz"
# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
# sha512 = "c979e3f2ed549d34a00a63afc031b2bc3eaee910523a398af492fcad5633dfcada47850b2b9e5af667fc6ba40447649016f48438c37fc1d360aa670d803dce09"
sha256 = "17679af6c00a70ce1d70668023e993045539afdc7ab0ca1a081aa8ef6993a595"
[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
}
_abuild_phase
'''
# de package() de Alpine (traducido $pkgdir→/out):
install = '''
_abuild_phase() {
rm target/release/cargo-*.d
install -Dm755 target/release/cargo-* -t "/out"/usr/bin/
install -Dm644 -t "/out/usr/share/doc/cargo-c" README.md
install -Dm644 -t "/out/usr/share/doc/cargo-c" LICENSE
}
_abuild_phase
'''
[deps]
build = ["curl", "libgit2", "libssh2", "openssl-dev>3", "zlib"]