swm_version: 1 base: distro_version: dev pins: {} mutations: - type: source_patch tarball: https://github.com/helix-editor/helix/archive/25.07.1/helix-25.07.1.tar.gz sha256: 27c8bc3eba46bc7bab1e3629c6b28ff94882eeff17366b3ea69cd8ceffba7541 patches: - "diff --git a/languages.toml b/languages.toml\nindex a9f4a58..85389c5 100644\n--- a/languages.toml\n+++ b/languages.toml\n@@ -808,7 +808,7 @@ indent = { tab-width = 2, unit = \" \" }\n \n [[grammar]]\n name = \"gotmpl\"\n-source = { git = \"https://github.com/dannylongeuay/tree-sitter-go-template\", rev = \"395a33e08e69f4155156f0b90138a6c86764c979\" }\n+source = { git = \"https://github.com/ngalaiko/tree-sitter-go-template\", rev = \"ca26229bafcd3f37698a2496c2a5efa2f07e86bc\" }\n \n [[language]]\n name = \"gowork\"\n" build: compiler: gcc target: x86_64-linux-musl link: static flags: [] phases: compile: | # This path is embedded in the resulting binary so that helix can find system grammars # https://github.com/helix-editor/helix/blob/25.01.1/helix-loader/src/lib.rs#L64 export HELIX_DEFAULT_RUNTIME=/usr/share/helix/runtime # Sandbox hermético: helix-term/build.rs intenta `git clone` de 245 gramáticas tree-sitter # (sin red ⇒ panic). Lo desactivamos; las gramáticas van por runtime/ (build post-install). export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 # de-Alpinizado: cargo-auditable no está en el lab de hammer; build plano (Etapa G) printf '%s\n' '#!/bin/sh' 'for a do' 'case "$a" in --target=*) a=--target=x86_64-linux-musl ;; esac' 'set -- "$@" "$a"' 'shift' 'done' 'exec zig cc -mcpu=baseline "$@"' > "$PWD/.hammer-zig-cc" chmod +x "$PWD/.hammer-zig-cc" RF="-C linker=$PWD/.hammer-zig-cc" rustc -vV | grep -q 'host: .*-alpine-' || RF="$RF -C link-self-contained=no" CC=gcc CXX=g++ AR=ar RUSTFLAGS="$RF" cargo rustc --release --locked --offline -p helix-term --bin hx -- -C target-feature=+crt-static -C relocation-model=static install: "_abuild_phase() {\ninstall -D -m755 target/release/hx -t \"/out\"/usr/bin/\n\n\tinstall -D -m644 contrib/completion/hx.bash \"/out\"/usr/share/bash-completion/completions/hx\n\tinstall -D -m644 contrib/completion/hx.fish \"/out\"/usr/share/fish/vendor_completions.d/hx.fish\n\tinstall -D -m644 contrib/completion/hx.zsh \"/out\"/usr/share/zsh/site-functions/_hx\n\n\tinstall -D -m644 contrib/Helix.desktop -t \"/out\"/usr/share/applications/\n\tinstall -D -m644 logo.svg \"/out\"/usr/share/icons/hicolor/scalable/apps/Helix.svg\n\n\tinstall -d -m755 \"/out\"/usr/share/\"helix\"\n\n\trm runtime/grammars/.gitkeep\n\trm runtime/themes/README.md\n\trm -rf runtime/grammars/sources\n\tcp -r runtime \"/out\"/usr/share/\"helix\"\n}\n_abuild_phase\n" target_bin: /usr/bin/helix expected_hash: b3:7157a210fadc04499b25a275985abdee48e57d3048dbb3b96b60f9ad9348b4e3