Files
lez-programs/modules/amm/flake.nix
T
r4bbit 1d88e6f3c4 chore: update to release set v0.2.1
This also includes an update to LEZ v0.2.4
2026-08-26 12:29:50 +02:00

31 lines
1.4 KiB
Nix

{
description = "Logos AMM core module — headless AMM business logic (pool resolution + swaps)";
inputs = {
logos-module-builder.url = "github:logos-co/logos-module-builder";
# Core wallet module dependency. The input name must match the
# metadata.json `dependencies` entry so the builder resolves it as a module
# dependency. Same upstream branch the repo-root flake pins (the QtRO byte-string
# `instruction` fix for send_generic_public_transaction). This flake is not built
# standalone (see NOTE below), so the repo-root flake's v0.2.1 LEZ override wins.
lez_core.url = "github:logos-blockchain/logos-execution-zone-module?ref=fix/generic-tx-instruction-bstr";
};
# NOTE: like apps/amm, this flake is NOT built standalone. The amm_ffi
# crate this module links (the Rust JSON-FFI brain) lives in the repo-root
# flake, and referencing it from here would require a hardcoded `git+file://`
# path or a `path:../..` input — the latter fails flake evaluation because this
# dir is copied into the Nix store as its own flake root, so `../..` can't
# escape it. Instead, the repo-root flake.nix builds this module directly
# (src = ./modules/amm) and resolves amm_ffi via `self`. Build it from
# the repo root:
# nix build .#amm-module
outputs = inputs@{ logos-module-builder, ... }:
logos-module-builder.lib.mkLogosModule {
src = ./.;
configFile = ./metadata.json;
flakeInputs = inputs;
};
}