From a60dd847fa7b99acfcba0cbd0a5d2db81191b3e2 Mon Sep 17 00:00:00 2001 From: nandi <78769380+codegod100@users.noreply.github.com> Date: Wed, 29 Jul 2026 09:06:16 -0700 Subject: [PATCH] boxd: update 0.1.23 -> 0.2.3 Refresh platform hashes from boxd.sh manifests, switch installCheck to `boxd version` (0.2.x dropped --version), and fix url-manifest-binary source rewrite under bash single quotes in the updater. --- packages/boxd/default.nix | 11 ++++++----- scripts/update-packages.sh | 6 ++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/boxd/default.nix b/packages/boxd/default.nix index 213fee0..f0fec08 100644 --- a/packages/boxd/default.nix +++ b/packages/boxd/default.nix @@ -11,15 +11,15 @@ let sources = { x86_64-linux = { url = "https://boxd.sh/downloads/cli/boxd-linux-amd64"; - hash = "sha256-TlUeF41JcsMekeGx4y8dKyjTQ/oyHwJrSxRFLD2nYpc="; + hash = "sha256-5v/eSZ5a1dnmnlalKQeEBn8KOP1kyUhuv+6h/X/xxSY="; }; aarch64-linux = { url = "https://boxd.sh/downloads/cli/boxd-linux-arm64"; - hash = "sha256-TVCIe9i6AdfltOBGiGWbpor0lPNX40sK3Xt35IJWOeE="; + hash = "sha256-xmyOyh9FVkFoxSenZeIT7dj6RKYEDVazEp7BcOv5boc="; }; aarch64-darwin = { url = "https://boxd.sh/downloads/cli/boxd-darwin-arm64"; - hash = "sha256-rSJjp67z+yES7DGDiUIKpi6jThGpN7nb8UwuOJ4zAT4="; + hash = "sha256-S+dYGGkTOHMvyfYlIICrXO5k3s6Q5DrKRODZmeRC/gs="; }; }; @@ -28,7 +28,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "boxd"; - version = "0.1.23"; + version = "0.2.3"; src = fetchurl { inherit (srcAttrs) url hash; @@ -44,7 +44,8 @@ stdenv.mkDerivation (finalAttrs: { nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/boxd"; - versionCheckProgramArg = "--version"; + # 0.2.x uses a subcommand; --version is no longer accepted. + versionCheckProgramArg = "version"; doInstallCheck = true; meta = { diff --git a/scripts/update-packages.sh b/scripts/update-packages.sh index 22a8e69..af65806 100755 --- a/scripts/update-packages.sh +++ b/scripts/update-packages.sh @@ -738,10 +738,12 @@ keys = [k for k in order if k in sources] + sorted(k for k in sources if k not i def fmt_entry(sysname): e = sources[sysname] + # Double-quoted dict keys: this snippet is embedded in bash single quotes. + url, h = e["url"], e["hash"] return ( f" {sysname} = {{\n" - f" url = \"{e['url']}\";\n" - f" hash = \"{e['hash']}\";\n" + f" url = \"{url}\";\n" + f" hash = \"{h}\";\n" f" }};" ) -- 2.51.2