Files
nixpkgs/pkgs/by-name/go/gomuks-web/update.sh
Ben Siraphob 5506449838 pkgs/by-name: fix typos
Assisted-by: Claude Code (claude-opus-5)
2026-08-05 09:56:33 -07:00

21 lines
467 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq nix-update
set -euo pipefail
# Fetch latest release info
RELEASE=$(curl -sSL https://api.github.com/repos/tulir/gomuks/releases/latest | jq -r .name)
if [ -z "$RELEASE" ]; then
echo "Failed to fetch latest release"
exit 1
fi
# Strip leading v from version
VERSION="${RELEASE#v}"
# Debug
echo "Release ${RELEASE} -> Version ${VERSION}"
nix-update --build --commit --version "${VERSION}" gomuks-web