Skip to content

Commit

Permalink
Merge pull request #11785 from kranurag7/kr/add-helix-editor
Browse files Browse the repository at this point in the history
add helix-editor package to wolfi
  • Loading branch information
rawlingsj authored Jan 26, 2024
2 parents 1d32714 + 7910887 commit 83dc035
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
42 changes: 42 additions & 0 deletions helix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package:
name: helix
version: 23.10
epoch: 0
description: "A post-modern modal text editor."
copyright:
- license: MPL-2.0

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- rust
- wolfi-base

pipeline:
- uses: git-checkout
with:
repository: https://github.com/helix-editor/helix
expected-commit: f6021dd0cdd8cf6795f024e396241cb0af2ca368
tag: ${{package.version}}

- uses: patch
with:
patches: tree-sitter-gemini.patch

- name: Configure and build
runs: |
cargo install --path helix-term --locked
mkdir -p ${{targets.destdir}}/usr/bin/
mv target/release/hx ${{targets.destdir}}/usr/bin/
mkdir -p $HOME/.config/helix
mv runtime $HOME/.config/helix
- uses: strip

update:
enabled: true
github:
identifier: helix-editor/helix
22 changes: 22 additions & 0 deletions helix/tree-sitter-gemini.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 6d168eda275deb23b0c643aecd746af3f4cc9937 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <[email protected]>
Date: Tue, 28 Nov 2023 14:38:15 +0900
Subject: [PATCH] fix CI: tree-sitter-gemini user renamed

---
languages.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/languages.toml b/languages.toml
index ef4687af8a71..33b27626e720 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2916,7 +2916,7 @@ file-types = ["gmi"]

[[grammar]]
name = "gemini"
-source = { git = "https://git.sr.ht/~sfr/tree-sitter-gemini", rev = "3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3" }
+source = { git = "https://git.sr.ht/~nbsp/tree-sitter-gemini", rev = "3cc5e4bdf572d5df4277fc2e54d6299bd59a54b3" }

[[language]]
name = "templ"

0 comments on commit 83dc035

Please sign in to comment.