From 3550ffd1d3c9ff65a221ccb84f89a707afe9a678 Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Sun, 13 Apr 2025 22:33:24 -0400 Subject: [PATCH] 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. --- pkgs/applications/editors/eclipse/eclipses.json | 1 + pkgs/applications/editors/eclipse/update.sh | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/eclipse/eclipses.json b/pkgs/applications/editors/eclipse/eclipses.json index b1bec5fa677f..425e38063007 100644 --- a/pkgs/applications/editors/eclipse/eclipses.json +++ b/pkgs/applications/editors/eclipse/eclipses.json @@ -1,6 +1,7 @@ { "platform_major": "4", "platform_minor": "34", + "version": "4.34", "year": "2024", "month": "12", "buildmonth": "11", diff --git a/pkgs/applications/editors/eclipse/update.sh b/pkgs/applications/editors/eclipse/update.sh index fd3798cd19ea..8d58ee6ad47c 100755 --- a/pkgs/applications/editors/eclipse/update.sh +++ b/pkgs/applications/editors/eclipse/update.sh @@ -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