56 lines
1.9 KiB
Nix
56 lines
1.9 KiB
Nix
{
|
|
inputs.protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/tags/quixos-reachability/5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87&rev=5b44c8154dc038efd87cf1cbdd2c00b66bfd4f87";
|
|
inputs.nixpkgs.follows = "protocol/nixpkgs";
|
|
inputs.flake-utils.follows = "protocol/flake-utils";
|
|
inputs.helpers = {
|
|
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/91679e8cc82133093cb0b4f9e519cbb39a5bba4f&rev=91679e8cc82133093cb0b4f9e519cbb39a5bba4f";
|
|
flake = false;
|
|
};
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
flake-utils,
|
|
helpers,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
camino = import (helpers + "/quixos-package-helpers.nix");
|
|
in
|
|
{
|
|
quixosPackages.checkedArtifacts =
|
|
context:
|
|
let
|
|
pkgs = camino.packageSet { inherit nixpkgs system context; };
|
|
dependencies =
|
|
if builtins.pathExists ./yarn-project.nix then
|
|
camino.mkCaminoYarnDependencies {
|
|
inherit pkgs;
|
|
src = ./.;
|
|
}
|
|
else
|
|
null;
|
|
in
|
|
camino.assembleCaminoPackage {
|
|
inherit pkgs context;
|
|
artifacts = [
|
|
(camino.mkCaminoTypeScriptPackage {
|
|
inherit pkgs context dependencies;
|
|
src = ./.;
|
|
entry = "src/server.ts";
|
|
entries.browser = "src/browser.ts";
|
|
})
|
|
(camino.mkCaminoReactPackage {
|
|
inherit pkgs context dependencies;
|
|
src = ./.;
|
|
modules = import ./components.nix;
|
|
})
|
|
];
|
|
};
|
|
devShells.default = camino.mkCaminoYarnShell { inherit pkgs; };
|
|
}
|
|
);
|
|
}
|