tawasuyu

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1574Shell 204Rust 111Markdown 993763 Sutichaykuna

⎇ 81ad23e8bbedf152a62aaf2c334afb096b51cb43 recipes/incoming/b3sum.toml TOML · 49 siq'ikuna · 1.5 KB Ñawpa willay ch'uya

Etapa G: recarga la cola — tanda cli-rust-4 importada (18 staged para la granja) 81ad23e8b · sergio ·

1# Importada de Alpine aports por `hammer import-alpine` (Etapa G). PUNTO DE PARTIDA — pero
2# YA trae los parches de musl de Alpine (lo que un import de nix pierde). Pendiente: el
3# sha256 del tarball (el wrapper lo calcula), y adaptar build/install del shell de abuild.
4name    = "b3sum"
5version = "1.8.5"
6
7[source]
8tarball = "https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.8.5/BLAKE3-1.8.5.tar.gz"
9# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
10# sha512 = "53344e5fa3d3058f9190f159991652a11951ce960236793d2ef2328b1c7f9310f11a7f84c6a2487aed253bc6d8269dbf4d7fbd30d765480849b2ef82e22c418e"
11sha256  = "220bd81286e2a0585beac66d41ac3f4c2c33ae8a4e339fc88cf22d5e00514fe9"
12
13[build]
14compiler = "zig-cc"
15target   = "x86_64-linux-musl"
16link     = "static"
17flags    = []
18
19[build.phases]
20# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
21compile = '''
22_abuild_phase() {
23cargo auditable build --release --frozen \
24		${_features:+--features $_features}
25
26	cmake -S ../c/ -B build -G Ninja \
27		-DCMAKE_INSTALL_PREFIX=/usr \
28		-DCMAKE_INSTALL_LIBDIR=lib \
29		-DBUILD_SHARED_LIBS=ON \
30		-DCMAKE_BUILD_TYPE=None \
31		-DBLAKE3_USE_TBB=ON
32	cmake --build build
33}
34_abuild_phase
35'''
36# de package() de Alpine (traducido $pkgdir→/out):
37install = '''
38_abuild_phase() {
39pkgdesc="Command line implementation of the BLAKE3 hash function"
40
41	install -Dm755 target/release/b3sum -t "/out"/usr/bin/
42
43	DESTDIR="/out" cmake --install build
44}
45_abuild_phase
46'''
47
48[deps]
49build = ["samurai", "onetbb"]