Skip to content

The agent that grows with you

fix(nix): keep function-form overrides that append to prev.extraDependencyGroups working

Tekniume892ed059413
diff --git a/nix/checks.nix b/nix/checks.nix
index 028551d0c17..42f6fb1326e 100644
--- a/nix/checks.nix
+++ b/nix/checks.nix
@@ -1354,8 +1354,9 @@ json.dump(sorted(leaf_paths(DEFAULT_CONFIG)), sys.stdout, indent=2)
viaModuleGroup = modulePackage { extraDependencyGroups = [ newGroup ]; };
viaModuleShipped = modulePackage { extraDependencyGroups = [ "anthropic" ]; };
viaOverlayGroup = hermes-agent.override { extraDependencyGroups = [ newGroup ]; };
+ # No `or [ ]`: appending to prev.extraDependencyGroups is a shape users already write.
viaFunctionGroup = hermes-agent.override (prev: {
- extraDependencyGroups = (prev.extraDependencyGroups or [ ]) ++ [ newGroup ];
+ extraDependencyGroups = prev.extraDependencyGroups ++ [ newGroup ];
});
viaOverlayShipped = hermes-agent.override { extraDependencyGroups = [ "messaging" ]; };
diff --git a/nix/packages.nix b/nix/packages.nix
index 6c795913ba0..a597864d06c 100644
--- a/nix/packages.nix
+++ b/nix/packages.nix
@@ -36,6 +36,10 @@
lastModified = inputs.self.lastModified or null;
minimal = pkgs.callPackage ./hermes-agent.nix {
inherit (inputs) uv2nix pyproject-nix pyproject-build-systems;
+ # Passed explicitly so `override (prev: ...)` sees it: a function form that appends to
+ # `prev.extraDependencyGroups` worked before the shipped groups moved to
+ # defaultDependencyGroups, and an argument default never lands in `prev`.
+ extraDependencyGroups = [ ];
npm-lockfile-fix = inputs'.npm-lockfile-fix.packages.default;
inherit pmPackages;
inherit