itsycal: 0.15.7 -> 0.15.8 (#457210)

This commit is contained in:
Niklas Korz
2025-11-09 22:02:06 +00:00
committed by GitHub
2 changed files with 26 additions and 2 deletions
+6 -2
View File
@@ -6,11 +6,11 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "itsycal";
version = "0.15.7";
version = "0.15.8";
src = fetchzip {
url = "https://itsycal.s3.amazonaws.com/Itsycal-${finalAttrs.version}.zip";
hash = "sha256-0JQ7fZ0cZM8DnAODZQKzUQEHQGhkNvV+0NY10Ef7MEw=";
hash = "sha256-zo77yCfIzb2ZmExJslQ64GPQqakXtiRmm0UYEgj+3eM=";
};
installPhase = ''
@@ -22,6 +22,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook postInstall
'';
passthru = {
updateScript = ./update.sh;
};
meta = {
changelog = "https://www.mowglii.com/itsycal/versionhistory.html";
description = "Tiny menu bar calendar";
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl xq-xml common-updater-scripts
set -eu
ROOT="$(dirname "$(readlink -f "$0")")"
NIX_DRV="$ROOT/package.nix"
if [ ! -f "$NIX_DRV" ]; then
echo "ERROR: cannot find package.nix in $ROOT"
exit 1
fi
LATEST_VERSION="$(curl -Ls https://www.mowglii.com/itsycal/versionhistory.html | xq -m -q 'h4' -a 'id' | head -n1)"
if [ -z "$LATEST_VERSION" ]; then
echo "ERROR: Failed to scrape the latest version."
exit 1
fi
update-source-version itsycal "$LATEST_VERSION" --file="$NIX_DRV"