Commit 3550ffd1 authored by Matt McHenry's avatar Matt McHenry
Browse files

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.
parent 7d7ac5d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
{
  "platform_major": "4",
  "platform_minor": "34",
  "version": "4.34",
  "year": "2024",
  "month": "12",
  "buildmonth": "11",
+5 −1
Original line number Diff line number Diff line
@@ -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