From 1c03a3fb23189a22771953a3b0e4e557a0c83944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 24 May 2026 14:26:40 +0200 Subject: [PATCH 1/2] n8n: fix update script Upstream added versions with -exp-\d suffix which broke the script. Instead of adding another filter to the current query, let's try getting the latest stable version instead. IIRC previously they didn't correctly mark stable releases which is why we didn't use this method. --- pkgs/by-name/n8/n8n/update.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/n8/n8n/update.sh b/pkgs/by-name/n8/n8n/update.sh index 74ce4a18986d..501aecf308f0 100755 --- a/pkgs/by-name/n8/n8n/update.sh +++ b/pkgs/by-name/n8/n8n/update.sh @@ -2,9 +2,7 @@ #!nix-shell --pure -i bash -p bash curl jq nix-update cacert git set -euo pipefail -new_version="$(curl -s 'https://api.github.com/repos/n8n-io/n8n/releases?per_page=30' | \ - jq -r ' - map(select(.prerelease | not) | .tag_name | select(startswith("n8n@")) | sub("^n8n@"; "")) - | sort_by(split(".") | map(tonumber)) | last - ')" +new_version="$(curl -s ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} \ + 'https://api.github.com/repos/n8n-io/n8n/releases/latest' | + jq -r '.tag_name | sub("^n8n@"; "")')" nix-update n8n --version "$new_version" From 23066e881996175ab7f42450eff2dad67705e598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sun, 24 May 2026 17:45:18 +0000 Subject: [PATCH 2/2] n8n: 2.20.6 -> 2.22.5 --- pkgs/by-name/n8/n8n/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/n8/n8n/package.nix b/pkgs/by-name/n8/n8n/package.nix index 84491ae199d9..8a3b39bf0c54 100644 --- a/pkgs/by-name/n8/n8n/package.nix +++ b/pkgs/by-name/n8/n8n/package.nix @@ -26,20 +26,20 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "n8n"; - version = "2.20.6"; + version = "2.22.5"; src = fetchFromGitHub { owner = "n8n-io"; repo = "n8n"; tag = "n8n@${finalAttrs.version}"; - hash = "sha256-c0O6tC+QDhHN3nmzXqNwhAM4+NoFYVO1mtO3V348hDs="; + hash = "sha256-YF6VJLA+y8pcAE3RwTub1XjPVfeh8cR+3TQqb3VvV5U="; }; pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; pnpm = pnpm_10; fetcherVersion = 3; - hash = "sha256-ft7n3J7L+u2hwEiR32Jw2k0ZsHCfI5yIB+IfmtB8xMY="; + hash = "sha256-lAe3GuZRdzEwOXWmpBtF7YfGvA4XJumLf80uDYS6j30="; }; nativeBuildInputs = [