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 1346Shell 97Rust 63Markdown 571650 Sutichaykuna

⎇ 420cb822dfa245621246252698fe03196ee1fc35 recipes/helix.toml TOML · 58 siq'ikuna · 2.5 KB Ñawpa willay ch'uya

Etapa G: helix al corpus (100→101) — el editor modal construye headless 420cb822d · 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    = "helix"
5version = "25.07.1"
6
7[source]
8tarball = "https://github.com/helix-editor/helix/archive/25.07.1/helix-25.07.1.tar.gz"
9# FIXME sha256: el wrapper lo calcula (Alpine publica sha512). sha512 de Alpine:
10# sha512 = "a8f64782273d88cd43b1aeadf45d1fa6a913c9c0b77c1da716ffdc64ec02e89db1bfb2dde4333509c3ddb5733b8f5a450b44ca54d35f113c3c0f411c01f4ce8c"
11sha256  = "27c8bc3eba46bc7bab1e3629c6b28ff94882eeff17366b3ea69cd8ceffba7541"
12patches = ["fix-gotmpl-grammar-source.patch"]
13
14# GUETO gcc: helix trae tree-house-bindings (tree-sitter en C); cc-rs hace detección de familia
15# de compilador con `zig -E` y zig la rechaza. compiler="gcc" usa el musl gcc de Alpine.
16[build]
17compiler = "gcc"
18target   = "x86_64-linux-musl"
19link     = "static"
20flags    = []
21
22[build.phases]
23# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
24compile = '''
25_abuild_phase() {
26# This path is embedded in the resulting binary so that helix can find
27	# system grammars
28	# https://github.com/helix-editor/helix/blob/25.01.1/helix-loader/src/lib.rs#L64
29	export HELIX_DEFAULT_RUNTIME=/usr/share/helix/runtime
30	# Sandbox hermético: helix-term/build.rs intenta `git clone` de 245 gramáticas tree-sitter
31	# (sin red ⇒ panic). Lo desactivamos; las gramáticas van por runtime/ (build post-install).
32	export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1
33	# de-Alpinizado: cargo-auditable no está en el lab de hammer; build plano (Etapa G)
34	cargo build --frozen --release
35}
36_abuild_phase
37'''
38# de package() de Alpine (traducido $pkgdir→/out):
39install = '''
40_abuild_phase() {
41install -D -m755 target/release/hx -t "/out"/usr/bin/
42
43	install -D -m644 contrib/completion/hx.bash "/out"/usr/share/bash-completion/completions/hx
44	install -D -m644 contrib/completion/hx.fish "/out"/usr/share/fish/vendor_completions.d/hx.fish
45	install -D -m644 contrib/completion/hx.zsh "/out"/usr/share/zsh/site-functions/_hx
46
47	install -D -m644 contrib/Helix.desktop -t "/out"/usr/share/applications/
48	install -D -m644 logo.svg "/out"/usr/share/icons/hicolor/scalable/apps/Helix.svg
49
50	install -d -m755 "/out"/usr/share/"helix"
51
52	rm runtime/grammars/.gitkeep
53	rm runtime/themes/README.md
54	rm -rf runtime/grammars/sources
55	cp -r runtime "/out"/usr/share/"helix"
56}
57_abuild_phase
58'''