eclipses: add version to eclipses.json

this is necessary for the auto-update script to be able to see that
the version has changed as a result of running update.sh.
This commit is contained in:
Matt McHenry 2025-04-13 22:33:24 -04:00
parent 7d7ac5d164
commit 3550ffd1d3
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{
"platform_major": "4",
"platform_minor": "34",
"version": "4.34",
"year": "2024",
"month": "12",
"buildmonth": "11",

View File

@ -41,7 +41,11 @@ esac
ECLIPSES_JSON=$(dirname $0)/eclipses.json;
t=$(mktemp);
cat $ECLIPSES_JSON | jq ". + {platform_major: \"${platform_major}\",platform_minor: \"${platform_minor}\",year: \"${year}\",month: \"${month}\",buildmonth: \"${buildmonth}\",dayHourMinute: \"${builddaytime}\"}" > $t;
# note: including platform_major, platform_minor, and version may seem redundant
# the first two are needed for the derivation itself; the third is necessary so
# that nixpkgs-update can see that the version changes as a result of this update
# script.
cat $ECLIPSES_JSON | jq ". + {platform_major: \"${platform_major}\",platform_minor: \"${platform_minor}\",version:\"${platform_major}.${platform_minor}\",year: \"${year}\",month: \"${month}\",buildmonth: \"${buildmonth}\",dayHourMinute: \"${builddaytime}\"}" > $t;
mv $t $ECLIPSES_JSON;
# prefetch new download hashes