gioser

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 1572Shell 203Rust 109Markdown 993728 Definitions

⎇ main tandas/staged-2026-06-26/rbw.toml TOML · 49 lines · 1.7 KB History raw

Etapa G: fuel-5 — recarga la cola del VPS (parado 14h sin producir) 08fdec3bb · 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    = "rbw"
5version = "1.15.0"
6
7[source]
8tarball = "https://git.tozt.net/rbw/snapshot/rbw-1.15.0.tar.gz"
9# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
10# sha512 = "8ec109c62ced929db36aca8b828d01c1fe46ca5b6a7970fdf9c1e4566fa8c7873c076fc8e0500ba3afbe6d1fd91d0e84177eac452a7fb9ec86451b8b2e08d2d6"
11sha256  = "660cfa4c727711665bef060046c28dd3924ca1e490fdc058d90d35372b2d2cf6"
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() {
23# p521 fails with stack overflow unless stack size is increased
24	export RUST_MIN_STACK=$((16 * 1024 * 1024))
25	cargo auditable build --frozen --release
26
27	target/release/rbw gen-completions bash > rbw.bash
28	target/release/rbw gen-completions fish > rbw.fish
29	target/release/rbw gen-completions zsh > _rbw
30}
31_abuild_phase
32'''
33# de package() de Alpine (traducido $pkgdir→/out):
34install = '''
35_abuild_phase() {
36install -Dm755 target/release/rbw "/out"/usr/bin/rbw
37	install -Dm755 target/release/rbw-agent "/out"/usr/bin/rbw-agent
38
39	install -Dm644 rbw.bash \
40		"/out"/usr/share/bash-completion/completions/rbw
41	install -Dm644 rbw.fish \
42		"/out"/usr/share/fish/vendor_completions.d/rbw.fish
43	install -Dm644 _rbw \
44		"/out"/usr/share/zsh/site-functions/_rbw
45}
46_abuild_phase
47'''
48
49# depends de runtime de Alpine (NO build-deps): pinentry