logos-chat/flake.nix
Prem Chaitanya Prathi 6b4d83a4b6
fix(mix): pin logos-delivery clientMode mount + enable clientMode
Bump vendor/nwaku to 4a3db364 (feat/logos-testnetv02-mix) so
mountKademlia skips switch.mount when client=true. Enable clientMode
and disable XPR publish for fleet mix discovery (lookup-only). Link
mix librln in make tests so smoke_test links on Darwin.
2026-07-09 18:59:36 +05:30

44 lines
1.5 KiB
Nix

{
description = "logos-chat shared library";
nixConfig = {
extra-substituters = [ "https://nix-cache.status.im/" ];
extra-trusted-public-keys = [ "nix-cache.status.im-1:x/93lOfLU+duPplwMSBR+OlY4+mo+dCN7n0mr4oPwgY=" ];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
flake-utils.lib.eachSystem [
"x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"
] (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
libchatDrv = pkgs.callPackage ./nix/libchat.nix {};
rustBundleDrv = pkgs.callPackage ./nix/rust_bundle.nix { src = self; };
# vendor/nwaku (logos-delivery) consumes its nim deps via nimble
# (nimbledeps/pkgs2), which isn't reproducible in the nix sandbox.
# Instead fetch them from vendor/nwaku's autogenerated deps.nix.
nwakuDeps = import (self + "/vendor/nwaku/nix/deps.nix") { inherit pkgs; };
in {
packages.default = pkgs.callPackage ./nix/default.nix {
src = self;
inherit rustBundleDrv nwakuDeps;
};
devShells.default = pkgs.callPackage ./nix/shell.nix {
inherit libchatDrv;
};
}
);
}