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;