mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-06-28 03:59:27 +00:00
closes: #77 The C consumer story lives downstream now: logos-chat-module wraps the client crate and exposes its own C API. The in-tree client-ffi crate has no consumers left, and the nim bindings still target the removed Context-based C API. - delete crates/client-ffi (including the message-exchange C example) and nim-bindings - drop core/conversations' unused safer-ffi dependency plus the leftover C artifact crate-types: staticlib on core/conversations, cdylib on double-ratchets (neither crate has extern "C" exports) - flake.nix: drop the default package (it built libclient_ffi.a plus its header); keep the logos-delivery package and the dev shell - ci.yml: drop the C FFI smoketest steps (valgrind included), the rustup install the smoketest no longer needs, and the nix-build job that built the removed default package - ADR 0001: point the FFI-compatibility driver at the downstream C API boundary instead of crates/client-ffi
57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{
|
|
description = "libchat - Logos Chat cryptographic library";
|
|
|
|
inputs = {
|
|
# nixos-unstable-small has both crates.io UA fixes (NixOS/nixpkgs#512735,
|
|
# NixOS/nixpkgs#524985); nixos-unstable hasn't caught up yet as of 2026-05-28.
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
logos-delivery = {
|
|
url = "github:logos-messaging/logos-delivery";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, rust-overlay, logos-delivery }:
|
|
let
|
|
systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f {
|
|
inherit system;
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ rust-overlay.overlays.default ];
|
|
};
|
|
});
|
|
in
|
|
{
|
|
packages = forAllSystems ({ system, ... }:
|
|
{
|
|
logos-delivery = logos-delivery.packages.${system}.liblogosdelivery.override {
|
|
enablePostgres = false;
|
|
enableNimDebugDlOpen = false;
|
|
chroniclesLogLevel = "FATAL";
|
|
};
|
|
}
|
|
);
|
|
|
|
devShells = forAllSystems ({ pkgs, ... }:
|
|
let
|
|
rustToolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust_toolchain.toml;
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = [
|
|
rustToolchain
|
|
pkgs.pkg-config
|
|
pkgs.cmake
|
|
pkgs.perl
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|