lez-programs/flake.nix
Ricardo Guilherme Schmidt 8dd1189584
feat(amm-ui): implement new position flow #216
Replace prototype data and floating-point quotes with live wallet and
chain reads, exact Rust quote planning, and optimistic external-wallet
submission.

Add canonical display-order mapping, responsive QML states,
network-scoped program configuration, and packaged Rust client support.
2026-07-16 15:46:45 +02:00

46 lines
1.2 KiB
Nix

{
description = "LEZ program client libraries";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
crane.url = "github:ipetkov/crane";
};
outputs = { nixpkgs, crane, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
craneLib = crane.mkLib pkgs;
src = craneLib.cleanCargoSource ./.;
commonArgs = {
inherit src;
pname = "amm_client";
version = "0.1.0";
strictDeps = true;
cargoExtraArgs = "-p amm_client";
};
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
ammClient = craneLib.buildPackage (commonArgs // {
inherit cargoArtifacts;
doCheck = false;
postInstall = ''
install -Dm644 ${./apps/amm/client/include/amm_client.h} \
$out/include/amm_client.h
'';
});
in {
default = ammClient;
amm_client = ammClient;
});
};
}