42 lines
681 B
Nix
42 lines
681 B
Nix
{
|
|
pkgs,
|
|
context,
|
|
src,
|
|
entry,
|
|
targets ? [
|
|
"browser"
|
|
"server"
|
|
],
|
|
entries ? { },
|
|
bindingOutput ? "src/gen/qx.ts",
|
|
dependencies ? null,
|
|
}:
|
|
let
|
|
group = import ./artifacts.nix {
|
|
inherit pkgs src;
|
|
inherit (context)
|
|
plan
|
|
core
|
|
sharedRuntime
|
|
typescript
|
|
packageRevisionId
|
|
;
|
|
protocol = context.generator;
|
|
group = true;
|
|
nodeModules = dependencies;
|
|
portable = {
|
|
inherit
|
|
entry
|
|
entries
|
|
targets
|
|
bindingOutput
|
|
;
|
|
};
|
|
};
|
|
package = import ./assemble-package.nix {
|
|
inherit pkgs context;
|
|
artifacts = [ group ];
|
|
};
|
|
in
|
|
package // { caminoGroup = group; }
|