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

⎇ 078a4a0d7d5a3c8ecdab7ad2a8fbe247bd36abf5 recipes/incoming/helix.toml TOML · 52 lines · 2.0 KB History raw

Etapa G: recarga la cola — tanda Rust #3 importada (28 staged para la próxima granja) 078a4a0d7 · 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[build]
15compiler = "zig-cc"
16target   = "x86_64-linux-musl"
17link     = "static"
18flags    = []
19
20[build.phases]
21# de build() de Alpine (traducido; el lab provee $CBUILD/$CHOST — Etapa G Fase 3; revisá --shared para estático):
22compile = '''
23_abuild_phase() {
24# This path is embedded in the resulting binary so that helix can find
25	# system grammars
26	# https://github.com/helix-editor/helix/blob/25.01.1/helix-loader/src/lib.rs#L64
27	export HELIX_DEFAULT_RUNTIME=/usr/share/helix/runtime
28	cargo auditable build --frozen --release
29}
30_abuild_phase
31'''
32# de package() de Alpine (traducido $pkgdir→/out):
33install = '''
34_abuild_phase() {
35install -D -m755 target/release/hx -t "/out"/usr/bin/
36
37	install -D -m644 contrib/completion/hx.bash "/out"/usr/share/bash-completion/completions/hx
38	install -D -m644 contrib/completion/hx.fish "/out"/usr/share/fish/vendor_completions.d/hx.fish
39	install -D -m644 contrib/completion/hx.zsh "/out"/usr/share/zsh/site-functions/_hx
40
41	install -D -m644 contrib/Helix.desktop -t "/out"/usr/share/applications/
42	install -D -m644 logo.svg "/out"/usr/share/icons/hicolor/scalable/apps/Helix.svg
43
44	install -d -m755 "/out"/usr/share/"helix"
45
46	rm runtime/grammars/.gitkeep
47	rm runtime/themes/README.md
48	rm -rf runtime/grammars/sources
49	cp -r runtime "/out"/usr/share/"helix"
50}
51_abuild_phase
52'''