31 lines
578 B
Nix
31 lines
578 B
Nix
{
|
|
pkgs,
|
|
context,
|
|
src,
|
|
entry,
|
|
bindingOutput ? "src/gen/remote.ts",
|
|
dependencies ? null,
|
|
service ? { },
|
|
}:
|
|
let
|
|
group = import ./artifacts.nix {
|
|
inherit pkgs src service;
|
|
inherit (context)
|
|
plan
|
|
core
|
|
sharedRuntime
|
|
typescript
|
|
packageRevisionId
|
|
;
|
|
protocol = context.generator;
|
|
group = true;
|
|
nodeModules = dependencies;
|
|
remote = { inherit entry bindingOutput; };
|
|
};
|
|
package = import ./assemble-package.nix {
|
|
inherit pkgs context;
|
|
artifacts = [ group ];
|
|
};
|
|
in
|
|
package // { caminoGroup = group; }
|