From b3392e73a0e5cd25f9bf52ed3b32518f52284e49 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Mon, 2 Dec 2024 13:37:55 +0100 Subject: [PATCH] renovate: 38.105.2 -> 39.42.4 Upgrades to renovate major version 39. Like upstream, we also upgrade renovate's nodejs version to 22. Renovate checks for a specific nodejs version at runtime, so we relax that a bit. Otherwise it would log an error everytime it is run with an older (minor/patch) version. --- nixos/doc/manual/release-notes/rl-2505.section.md | 3 +++ pkgs/by-name/re/renovate/package.nix | 13 +++++++++---- pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 25468f3004564..c4c0ccc6de5d9 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -58,6 +58,9 @@ - `fluxus` has been removed, as it depends on `racket_7_9` and had no updates in 9 years. +- `renovate` was updated to v39. See the [upstream release notes](https://docs.renovatebot.com/release-notes-for-major-versions/#version-39) for breaking changes. + Like upstream's docker images, renovate now runs on NodeJS 22. + - The behavior of the `networking.nat.externalIP` and `networking.nat.externalIPv6` options has been changed. `networking.nat.forwardPorts` now only forwards packets destined for the specified IP addresses. - `nodePackages.meshcommander` has been removed, as the package was deprecated by Intel. diff --git a/pkgs/by-name/re/renovate/package.nix b/pkgs/by-name/re/renovate/package.nix index 2d47c1e879491..c772d0460fad9 100644 --- a/pkgs/by-name/re/renovate/package.nix +++ b/pkgs/by-name/re/renovate/package.nix @@ -11,6 +11,7 @@ xcbuild, nixosTests, nix-update-script, + yq-go, }: let @@ -20,13 +21,13 @@ let in stdenv'.mkDerivation (finalAttrs: { pname = "renovate"; - version = "38.105.2"; + version = "39.42.4"; src = fetchFromGitHub { owner = "renovatebot"; repo = "renovate"; - rev = "refs/tags/${finalAttrs.version}"; - hash = "sha256-gF8bxzNF1AUJJDxFdNfa+sr/TP0S4uLCXyu3tjRuBjc="; + tag = finalAttrs.version; + hash = "sha256-M1QzvYMrs39ELc2tkazwDPbCPHqfqzde2hbMvg34m0A="; }; postPatch = '' @@ -39,11 +40,12 @@ stdenv'.mkDerivation (finalAttrs: { nodejs pnpm_9.configHook python3 + yq-go ] ++ lib.optional stdenv'.hostPlatform.isDarwin xcbuild; pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-AdNleEe1wVBfhhoM6xit06ql1xEz/TLhZ7qpofwQ874="; + hash = "sha256-14E1v2HLFdbkxFnSPQnuwb+zyPXaczAp1Ab0EC65luc="; }; env.COREPACK_ENABLE_STRICT = 0; @@ -52,6 +54,9 @@ stdenv'.mkDerivation (finalAttrs: { '' runHook preBuild + # relax nodejs version + yq '.engines.node = "${nodejs.version}"' -i package.json + pnpm build pnpm prune --prod --ignore-scripts '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db8d95490241e..ddc34200df4e2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10663,6 +10663,10 @@ with pkgs; librdf_redland = callPackage ../development/libraries/librdf/redland.nix { }; redland = librdf_redland; # added 2018-04-25 + renovate = callPackage ../by-name/re/renovate/package.nix { + nodejs = nodejs_22; + }; + qradiolink = callPackage ../applications/radio/qradiolink { protobuf = protobuf_21; };