Files
package-project-react-runtime/flake.nix
T

39 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{
description = "Quixos project 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 = "project-react-runtime";
bundle = {
entry = "dist/server.js";
};
installServer = {
libexecName = "project-react-runtime";
descriptorPath = "descriptor.quixos-package.txtpb";
extraFiles = [
{
source = "dist/project-component.mjs";
target = "project-component.mjs";
}
];
};
};
}