From 9a2927c2e078557b39cfba17c43b83ec201a158c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=B6nig?= Date: Wed, 14 Oct 2026 14:43:11 +0200 Subject: [PATCH 1/2] n8n: 2.42.6 -> 2.43.5 --- overlays/mods/n8n.nix | 6 +++--- tests/n8n-overlay-test.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/overlays/mods/n8n.nix b/overlays/mods/n8n.nix index 64321b5..c822c9c 100644 --- a/overlays/mods/n8n.nix +++ b/overlays/mods/n8n.nix @@ -21,13 +21,13 @@ ''; in prev.n8n.overrideAttrs (finalAttrs: previousAttrs: { - version = "2.42.6"; + version = "2.43.5"; src = prev.fetchFromGitHub { owner = "n8n-io"; repo = "n8n"; tag = "n8n@${finalAttrs.version}"; - hash = "sha256-bYf0Dgh213RInRNUzZ64YtZFelANhdutgGGWBphjhOU="; + hash = "sha256-N8QaNX6tzYPTvJ/H0ROoIdrQ7BWuyMm0VnQHsK4wnng="; }; pnpmDeps = prev.fetchPnpmDeps { @@ -35,7 +35,7 @@ in pnpm = prev.pnpm_11; fetcherVersion = 4; postPatch = relaxPnpmEngine; - hash = "sha256-Dc0+xbNbgiZWnDefLpRdLag8ncBkjNXpZVrlz42jG+k="; + hash = "sha256-ZQY9wZ7j0RNvsIqIuklvieIuQRsM0oQ2Kr3Wkyq4ywc="; }; postPatch = (previousAttrs.postPatch or "") + relaxPnpmEngine; diff --git a/tests/n8n-overlay-test.nix b/tests/n8n-overlay-test.nix index 392a782..60b000f 100644 --- a/tests/n8n-overlay-test.nix +++ b/tests/n8n-overlay-test.nix @@ -15,9 +15,9 @@ modifiedPkgs = mkPkgs [self.overlays.modifications]; defaultPkgs = mkPkgs [self.overlays.default]; - expectedVersion = "2.42.6"; - expectedSrcHash = "sha256-bYf0Dgh213RInRNUzZ64YtZFelANhdutgGGWBphjhOU="; - expectedPnpmHash = "sha256-Dc0+xbNbgiZWnDefLpRdLag8ncBkjNXpZVrlz42jG+k="; + expectedVersion = "2.43.5"; + expectedSrcHash = "sha256-N8QaNX6tzYPTvJ/H0ROoIdrQ7BWuyMm0VnQHsK4wnng="; + expectedPnpmHash = "sha256-ZQY9wZ7j0RNvsIqIuklvieIuQRsM0oQ2Kr3Wkyq4ywc="; expectedChangelog = "https://github.com/n8n-io/n8n/releases/tag/n8n@${expectedVersion}"; expectedRootNodeModuleSymlinks = [ "ln -s .pnpm/node_modules/sass-embedded node_modules/sass-embedded" From cbd7d982ef6f8f71bf6b8ac95d216bdf2a7a8edb Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Wed, 14 Oct 2026 15:06:25 +0200 Subject: [PATCH 2/2] fix(n8n): match pnpm by pname/version, not outPath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comparing x.outPath == prev.pnpm_10.outPath forces the pnpm_10 derivation. On nixpkgs pins where pnpm_10 is insecure-marked (nixos-26.05 ships 10.34.0 with 9 CVEs) that comparison alone throws "Refusing to evaluate" — even though the package is only discarded by the swap. Match on pname + major version instead: plain attrs, nothing forced, identical swap semantics on the m3ta pin. --- overlays/mods/n8n.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/overlays/mods/n8n.nix b/overlays/mods/n8n.nix index c822c9c..3abd4c9 100644 --- a/overlays/mods/n8n.nix +++ b/overlays/mods/n8n.nix @@ -44,8 +44,13 @@ in # n8n calls pnpm directly during the build (install/build/prune) and pnpm 10 # cannot parse the pnpm-11 lockfile. The top-level pnpmConfigHook stays as # is — it discovers the fetcher version from pnpmDeps' .fetcher-version. + # Match by pname/version, never by outPath: forcing prev.pnpm_10.outPath + # instantiates that derivation, and on nixpkgs pins where pnpm_10 is + # insecure-marked (e.g. nixos-26.05's pnpm 10.34.0) the comparison itself + # throws "Refusing to evaluate" — even though the package is only being + # discarded here. pname/version are plain attrs and force nothing. nativeBuildInputs = builtins.map (x: - if (x.outPath or null) == prev.pnpm_10.outPath + if (x.pname or null) == "pnpm" && prev.lib.versionOlder (x.version or "11") "11" then prev.pnpm_11 else x) previousAttrs.nativeBuildInputs;