#!/usr/bin/env bash

set -euo pipefail

apt-get update && apt-get install -y git

mkdir -p /src/
cd /src/

git clone https://github.com/helix-editor/helix.git
cd helix

RUSTFLAGS="-C target-feature=-crt-static"
cargo install --path helix-term

mkdir -p /out/
mv $CARGO_HOME/bin/hx /out/hx
mv runtime /out/
