Build composable Camino packages with explicit type and source dependencies
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
context,
|
||||
artifacts,
|
||||
}:
|
||||
let
|
||||
groups = map (artifact: artifact.caminoGroup or artifact) artifacts;
|
||||
config = pkgs.writeText "camino-package-assembly.json" (
|
||||
builtins.toJSON {
|
||||
inherit groups;
|
||||
inherit (context) plan packageRevisionId sharedRuntime;
|
||||
compiler = "${context.generator}/libexec/quixos-protocol/execution-world.mjs";
|
||||
node = "${pkgs.nodejs_24}/bin/node";
|
||||
esbuild = "${pkgs.esbuild}/bin/esbuild";
|
||||
shell = "${pkgs.runtimeShell}";
|
||||
serviceAdapter = ./portable-service.mjs;
|
||||
}
|
||||
);
|
||||
in
|
||||
pkgs.runCommand "camino-package"
|
||||
{
|
||||
passthru = {
|
||||
caminoGroups = groups;
|
||||
assemblyConfig = config;
|
||||
};
|
||||
}
|
||||
''
|
||||
${pkgs.nodejs_24}/bin/node ${./.}/assemble-package.mjs ${config}
|
||||
''
|
||||
Reference in New Issue
Block a user