view .chezmoiscripts/run_onchange_after_17-install-mercurial.sh.tmpl @ 1095:4befa7ae4e90 draft

fix: add keyrings.alt to mercurial package
author "Zeger Van de Vannet <zeger@vandevan.net>"
date Sun, 18 May 2025 16:33:16 +0200
parents 9732db099471
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