vscodium: vscodium.vscodeVersion should be set to latestUpstream

Resolves https://github.com/NixOS/nixpkgs/issues/505096

(cherry picked from commit 6c381c34c8)
This commit is contained in:
Grant DeFayette 2026-04-16 15:23:19 -04:00 committed by github-actions[bot]
commit 831105a4b6
2 changed files with 5 additions and 0 deletions

View file

@ -5,9 +5,11 @@ set -eou pipefail
latestVersion=$(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sL https://api.github.com/repos/VSCodium/vscodium/releases/latest | jq -r ".tag_name")
currentVersion=$(nix-instantiate --eval -E "with import ./. {}; vscodium.version or (lib.getVersion vscodium)" | tr -d '"')
latestUpstream=$(curl -sL https://raw.githubusercontent.com/VSCodium/vscodium/refs/tags/$latestVersion/upstream/stable.json | jq -r ".tag")
echo "latest version: $latestVersion"
echo "current version: $currentVersion"
echo "latest upstream version: $latestUpstream"
if [[ "$latestVersion" == "$currentVersion" ]]; then
echo "package is up-to-date"
@ -25,3 +27,5 @@ for i in \
hash=$(nix --extra-experimental-features nix-command hash convert --hash-algo sha256 --to sri $(nix-prefetch-url "https://github.com/VSCodium/vscodium/releases/download/$latestVersion/VSCodium-$2-$latestVersion.$3"))
update-source-version vscodium $latestVersion $hash --system=$1 --ignore-same-version
done
update-source-version vscodium $latestUpstream --version-key=vscodeVersion --ignore-same-version --ignore-same-hash

View file

@ -44,6 +44,7 @@ buildVscode rec {
# Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem.
version = "1.116.02821";
vscodeVersion = "1.116.0";
pname = "vscodium";
executableName = "codium";