45 lines
1.5 KiB
Nix
45 lines
1.5 KiB
Nix
{
|
|||
|
|
inputs.protocol.url = "git+https://repos.quixos.org/quixos-toolchain/quixos-protocol.git?ref=refs/tags/quixos-reachability/d829d584af91326aacb8997459014c49def2f66e&rev=d829d584af91326aacb8997459014c49def2f66e";
|
||
|
|
inputs.nixpkgs.follows = "protocol/nixpkgs";
|
||
|
|
inputs.flake-utils.follows = "protocol/flake-utils";
|
||
|
|
inputs.helpers = {
|
||
|
|
url = "git+https://repos.quixos.org/quixos-toolchain/quixos-nix-helpers.git?ref=refs/tags/quixos-reachability/5657043450c46fc84e1a6d38c2f8919ba1e9d10c&rev=5657043450c46fc84e1a6d38c2f8919ba1e9d10c";
|
||
|
|
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.mkCaminoTypeScriptPackage {
|
||
|
|
inherit pkgs context dependencies;
|
||
|
|
src = ./.;
|
||
|
|
entry = "src/portable.ts";
|
||
|
|
});
|
||
|
|
devShells.default = camino.mkCaminoYarnShell { inherit pkgs; };
|
||
|
|
}
|
||
|
|
);
|
||
|
|
}
|