39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{
|
|||
|
|
description = "Quixos todo React component runtime package";
|
||
|
|
|
||
|
|
inputs = {
|
||
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
|
||
|
|
quixosNixHelpers = {
|
||
|
|
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/cf7945abb6ee2533a34dff4a7d4a956e70efe007&rev=cf7945abb6ee2533a34dff4a7d4a956e70efe007";
|
||
|
|
flake = false;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = inputs@{ nixpkgs, flake-utils, quixosNixHelpers, ... }:
|
||
|
|
let
|
||
|
|
quixosHelpers = import "${quixosNixHelpers}/quixos-package-helpers.nix";
|
||
|
|
in
|
||
|
|
quixosHelpers.mkCaminoTsYarnNixifyFlake {
|
||
|
|
inherit inputs nixpkgs flake-utils;
|
||
|
|
packageRoot = ./.;
|
||
|
|
migrationEntrypoint = "dist/migrate.js";
|
||
|
|
bindingOptions = builtins.fromJSON (builtins.readFile ./bindings.json);
|
||
|
|
promptName = "todo-react-runtime";
|
||
|
|
bundle = {
|
||
|
|
entry = "dist/server.js";
|
||
|
|
};
|
||
|
|
installServer = {
|
||
|
|
libexecName = "todo-react-runtime";
|
||
|
|
descriptorPath = "descriptor.quixos-package.txtpb";
|
||
|
|
extraFiles = [
|
||
|
|
{
|
||
|
|
source = "dist/todo-component.mjs";
|
||
|
|
target = "todo-component.mjs";
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|