view .chezmoiscripts/run_onchange_after_17-install-mercurial.sh.tmpl @ 1096:dfa9d2a82c92 draft tip

feat: update helix
author Zeger Van de Vannet <zeger@vandevan.net>
date Sun, 18 May 2025 20:05:51 +0200
parents 4befa7ae4e90
children
line wrap: on
line source

{{ $version := "7.0.2" -}}
{{ if (and (eq .chezmoi.os "linux") (or (eq .chezmoi.osRelease.name "Ubuntu") (eq .chezmoi.osRelease.name "Fedora Linux Asahi Remix" ))) -}}
#!/usr/bin/env -S ${HOME}/bin/mise exec [email protected] [email protected] -- bash
{{ else -}}
#!/usr/bin/env bash
{{ end }}

set -xe

{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu")) -}}
sudo apt install --yes clang rustc cargo python3-dev
{{ end }}

pipx install "mercurial=={{ $version }}" --pip-args '--no-cache-dir --config-settings --global-option=--rust --no-binary=mercurial'
pipx inject mercurial hg-evolve~=11.1.8 hg-git~=1.1.2 mercurial_keyring~=1.4.4 keyrings.alt==5.0.2 keyrings.cryptfile==1.3.9