Build checked asynchronous service registries with Nix

This commit is contained in:
Timothy J. Aveni
2026-09-20 20:58:01 -07:00
parent 9257198eec
commit ca0efe7252
2 changed files with 61 additions and 20 deletions
+10
View File
@@ -9,6 +9,7 @@
typescript ? core.dependencies,
packageRevisionId,
portable ? null,
remote ? null,
service ? { },
nodeModules ? null,
}:
@@ -40,6 +41,15 @@ let
"server"
];
};
remote =
if remote == null then
null
else
{
inherit (remote) entry;
registryExport = remote.registryExport or "registry";
bindingOutput = remote.bindingOutput or "src/gen/remote.ts";
};
node = "${pkgs.nodejs_24}/bin/node";
tsc = "${typescript}/node_modules/typescript/bin/tsc";
esbuild = "${pkgs.esbuild}/bin/esbuild";