summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 02:09:08 +0000
committertv <tv@krebsco.de>2026-11-20 03:11:28 +0100
commitc9776b0bf227599987d9e031772b3ae4399bf6d0 (patch)
tree75e49c9a1464d49204d864df05c269c582a8d2f6
parent8416c5b24d8207f6c58f995e58445fe1e55c9ab2 (diff)
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.
-rw-r--r--configs/hermes.nix8
1 files changed, 7 insertions, 1 deletions
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; };