2026-09-22 13:51:32 -07:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
context,
|
|
|
|
|
src,
|
|
|
|
|
modules,
|
|
|
|
|
bindingOutput ? "src/gen/client.ts",
|
|
|
|
|
dependencies ? null,
|
|
|
|
|
}:
|
|
|
|
|
let
|
|
|
|
|
group = import ./artifacts.nix {
|
|
|
|
|
inherit pkgs src;
|
|
|
|
|
inherit (context)
|
2026-09-30 22:03:17 -07:00
|
|
|
buildContract
|
2026-09-22 13:51:32 -07:00
|
|
|
core
|
|
|
|
|
sharedRuntime
|
|
|
|
|
typescript
|
|
|
|
|
packageRevisionId
|
|
|
|
|
;
|
|
|
|
|
protocol = context.generator;
|
|
|
|
|
group = true;
|
|
|
|
|
nodeModules = dependencies;
|
|
|
|
|
components = {
|
|
|
|
|
inherit bindingOutput;
|
|
|
|
|
inherit (context.react) sdk runtime;
|
|
|
|
|
entries = modules;
|
|
|
|
|
contracts = context.react.contracts or [ ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
package = import ./assemble-package.nix {
|
|
|
|
|
inherit pkgs context;
|
|
|
|
|
artifacts = [ group ];
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
package // { caminoGroup = group; }
|