From 31d502e84c7aa49ad2eaeb8613a7aded47e935ab Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Fri, 6 Sep 2024 22:51:29 -0400 Subject: [PATCH] Install glab and zlib-devel; try to cache helix src --- recipes/common/dev-packages.yml | 3 ++- recipes/common/helix.yml | 26 +++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/recipes/common/dev-packages.yml b/recipes/common/dev-packages.yml index 6da74f5..2b36a91 100644 --- a/recipes/common/dev-packages.yml +++ b/recipes/common/dev-packages.yml @@ -33,7 +33,8 @@ modules: - erlang-doc - elixir - elixir-doc - - zlib + - zlib-devel + - glab - type: script scripts: - install-mkcert.sh diff --git a/recipes/common/helix.yml b/recipes/common/helix.yml index bb80247..3203ab4 100644 --- a/recipes/common/helix.yml +++ b/recipes/common/helix.yml @@ -1,11 +1,31 @@ stages: + - name: helix-src + from: alpine + modules: + - type: script + snippets: + - apk update && apk install git + - type: script + no-cache: true + snippets: + - git clone https://github.com/helix-editor/helix.git /helix - name: helix from: rust modules: + - type: copy + from: helix-src + src: /helix + dest: /helix - type: script - no-cache: true - scripts: - - install-helix.sh + # scripts: + # - install-helix.sh + snippets: + - | + RUSTFLAGS="-C target-feature=-crt-static" + cargo install --path helix-term + - mkdir -p /out/ + - mv $CARGO_HOME/bin/hx /out/hx + - mv runtime /out/ modules: - type: copy from: helix