mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
21 lines
467 B
Bash
Executable File
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
|