From c9776b0bf227599987d9e031772b3ae4399bf6d0 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 02:09:08 +0000 Subject: configs/hermes: make hermes-agent evaluate with nixos-26.05 nixos-26.05's fetchPnpmDeps calls pnpm.override for a pnpm >= 11, to rebuild its nodejs-slim with a pinned SQLite. hermes-agent passes its pinned pnpm 12, a plain attrset carrying nixpkgs' nodejs-slim, which has no override. Give it one, in the pkgs only hermes-agent's flake sees. This evaluates, but the build is untested: the pinned SQLite may make the pnpm deps' fixed-output hash differ from hermes-agent's. With nixos-unstable the overlay changes no derivation. --- configs/hermes.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/hermes.nix b/configs/hermes.nix index a4e5b4e..0f3a79c 100644 --- a/configs/hermes.nix +++ b/configs/hermes.nix @@ -31,7 +31,13 @@ let _type = "flake"; outPath = pkgs.path; inherit (pkgs) lib; - legacyPackages.${pkgs.stdenv.hostPlatform.system} = pkgs; + legacyPackages.${pkgs.stdenv.hostPlatform.system} = pkgs.extend (_: prev: { + # For nixos-26.05: its fetchPnpmDeps overrides nodejs-slim in a pnpm + # >= 11, but hermes-agent's pnpm 12 is a plain attrset with that. + fetchPnpmDeps = args: prev.fetchPnpmDeps (args // { + pnpm = args.pnpm // { override = attrs: args.pnpm // attrs; }; + }); + }); }; pyproject-nix = callFlake (input "pyproject-nix") { inherit nixpkgs; }; uv2nix = callFlake (input "uv2nix") { inherit nixpkgs pyproject-nix; }; -- cgit v1.3.1