import-batch sobre tandas/cli-rust-3.txt (30 entradas) -> 27/30 importadas en ~2min (nix=25, alpine=2; fallaron yazi/rip/lln por src no-clasificable). pin ancló 24 tag->SHA. Dedup de 5 ya-en-corpus. Cola = 28 recetas listas (incl. helix/nushell/ gitoxide/ruff/uv/mdbook/jaq/bacon/... + los 6 staged previos). Aplica la lección: el import recarga en minutos; el build es trabajo de granja (build-farm.sh, paciencia con los binarios grandes — no son deadlocks).
46 lines
1.4 KiB
TOML
46 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 = "nushell"
|
|
version = "0.104.1"
|
|
|
|
[source]
|
|
tarball = "https://github.com/nushell/nushell/archive/0.104.1.tar.gz"
|
|
# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
|
|
# sha512 = "963efb959385d28839a1505111a3841c08cad7c1941c7c5a3dfc941d34cbd0d2a46d1602cd72f8b5920d86a03b2c157da9893f8ea2b25bbab81c12651a2e91c9"
|
|
sha256 = "3dafca8bf892f5a2afaac1122a88a7eb7f22a0b62ef901f550173a11d5cbdf6e"
|
|
patches = ["system-deps.patch"]
|
|
|
|
[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 --workspace --release --frozen $_exclude_opts
|
|
}
|
|
_abuild_phase
|
|
'''
|
|
# de package() de Alpine (traducido $pkgdir→/out):
|
|
install = '''
|
|
_abuild_phase() {
|
|
find target/release \
|
|
-maxdepth 1 \
|
|
-executable \
|
|
-type f \
|
|
-name "nu*" \
|
|
-exec install -Dm755 '{}' -t "/out"/usr/bin/ \;
|
|
|
|
install -Dm644 LICENSE \
|
|
-t "/out"/usr/share/licenses/nushell/
|
|
}
|
|
_abuild_phase
|
|
'''
|
|
|
|
[deps]
|
|
build = ["libgit2", "libssh2", "mimalloc2", "openssl", "sqlite"]
|