From 1c475101d07d947245bfc49394ae6168f492685b Mon Sep 17 00:00:00 2001 From: "Lockszmith (VAST@MacBook)" Date: Thu, 17 Apr 2025 15:57:13 -0400 Subject: [PATCH] added broot --- .../_src.posix/.chezmoiexternal.yaml.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/chezmoi.roots/_src.posix/.chezmoiexternal.yaml.tmpl b/chezmoi.roots/_src.posix/.chezmoiexternal.yaml.tmpl index 4d62973..e7d2da3 100644 --- a/chezmoi.roots/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/chezmoi.roots/_src.posix/.chezmoiexternal.yaml.tmpl @@ -337,6 +337,22 @@ "executable" true "refreshPeriod" $defaultRefresh ) -}}{{- end -}}{{- end -}}{{- end -}} + +{{- with $app_name := "broot" -}} +{{- with $bin_url := (output "sh" "-c" ( + list + "cargo-binstall --log-level debug --dry-run --no-track --no-confirm --json-output" + $app_name + "| jq \".fields | select ( .message == \\\"Downloading package\\\" )\"" + | join " ") | fromJson + ).url +}}{{ $_ := set $externals (printf ".local/bin/%s" $app_name) (dict + "type" "archive-file" + "url" $bin_url + "path" (printf "%s" $app_name) + "executable" true + "refreshPeriod" $defaultRefresh +) -}}{{- end -}}{{- end -}} {{- end -}} {{- $externals | toYaml -}}