mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-07-28 10:33:11 +00:00
Port the {.ffi.} wrapper to nim-ffi 0.2.0 (master). 0.2.0 is a breaking
redesign over 0.1.4: events move to a per-context multi-listener registry
(sds_add_event_listener / sds_remove_event_listener) fired via {.ffiEvent.}
emitters, and request/response/event marshalling switches from JSON to CBOR.
- libsds.nim: typed {.ffiEvent.} payloads replace the JSON event modules;
CBOR handles nesting, so unwrap returns a typed response again. The
retrieval-hint provider (a C function pointer, not CBOR-encodable) passes
its address as a uint64 via a {.ffi.} method that stores it in a
worker-thread threadvar.
- pin nim-ffi to master HEAD by commit. The lock version is kept a clean
semver ("0.2.0") on purpose: nimble's `#`-prefixed special version in the
lock breaks `nimble setup -l` (an unquoted `#` truncates the git path),
so only vcsRevision carries the commit.
- add the new transitive dep cbor_serialization to the lock and nix/deps.nix.
- regenerate libsds.h for the CBOR/registry ABI.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
182 lines
6.0 KiB
Nix
182 lines
6.0 KiB
Nix
# AUTOGENERATED from nimble.lock — do not edit manually.
|
|
# Regenerate with: ./tools/gen-nix-deps.sh nimble.lock nix/deps.nix
|
|
{ pkgs }:
|
|
|
|
{
|
|
unittest2 = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-unittest2";
|
|
rev = "26f2ef3ae0ec72a2a75bfe557e02e88f6a31c189";
|
|
sha256 = "1n8n36kad50m97b64y7bzzknz9n7szffxhp0bqpk3g2v7zpda8sw";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
bearssl = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-bearssl";
|
|
rev = "11e798b62b8e6beabe958e048e9e24c7e0f9ee63";
|
|
sha256 = "0qx36iiawrhmx9qjqcyfvz0134ph9dy8ryq3ch8d31gq6ir7aw84";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
bearssl_pkey_decoder = pkgs.fetchgit {
|
|
url = "https://github.com/vacp2p/bearssl_pkey_decoder";
|
|
rev = "21dd3710df9345ed2ad8bf8f882761e07863b8e0";
|
|
sha256 = "0bl3f147zmkazbhdkr4cj1nipf9rqiw3g4hh1j424k9hpl55zdpg";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
results = pkgs.fetchgit {
|
|
url = "https://github.com/arnetheduck/nim-results";
|
|
rev = "df8113dda4c2d74d460a8fa98252b0b771bf1f27";
|
|
sha256 = "1h7amas16sbhlr7zb7n3jb5434k98ji375vzw72k1fsc86vnmcr9";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
stew = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-stew";
|
|
rev = "b66168735d6f3841c5239c3169d3fe5fe98b1257";
|
|
sha256 = "10n71vfa6klzd9dmal96jy0hiqk04gaj8wc9g91z6fclryf0yq92";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
faststreams = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-faststreams";
|
|
rev = "ce27581a3e881f782f482cb66dc5b07a02bd615e";
|
|
sha256 = "0y6bw2scnmr8cxj4fg18w7f34l2bh9qwg5nhlgd84m9fpr5bqarn";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
serialization = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-serialization";
|
|
rev = "b0f2fa32960ea532a184394b0f27be37bd80248b";
|
|
sha256 = "0wip1fjx7ka39ck1g1xvmyarzq1p5dlngpqil6zff8k8z5skiz27";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
json_serialization = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-json-serialization";
|
|
rev = "c343b0e243d9e17e2c40f3a8a24340f7c4a71d44";
|
|
sha256 = "0i8sq51nqj8lshf6bfixaz9a7sq0ahsbvq3chkxdvv4khsqvam91";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
testutils = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-testutils";
|
|
rev = "e4d37dc1652d5c63afb89907efb5a5e812261797";
|
|
sha256 = "0nv0a9jm5b1rn3y52cxvyj8xz3jg235mp0xbirfp2cda0icgy1si";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
chronicles = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-chronicles";
|
|
rev = "27ec507429a4eb81edc20f28292ee8ec420be05b";
|
|
sha256 = "1xx9fcfwgcaizq3s7i3s03mclz253r5j8va38l9ycl19fcbc96z9";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
httputils = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-http-utils";
|
|
rev = "c53852d9e24205b6363bba517fa8ee7bde823691";
|
|
sha256 = "1b332smfyp2yvhvfjrfqy4kvh9pc5w6hqh17f1yclz5z1j5xdpf1";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
chronos = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-chronos";
|
|
rev = "0646c444fce7c7ed08ef6f2c9a7abfd172ffe655";
|
|
sha256 = "1r499jl0lhnjq7hgddwgjl0gh3y1mprnqkhk0h6yh3cwgsmr5ym9";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
dnsclient = pkgs.fetchgit {
|
|
url = "https://github.com/ba0f3/dnsclient.nim";
|
|
rev = "23214235d4784d24aceed99bbfe153379ea557c8";
|
|
sha256 = "03mf3lw5c0m5nq9ppa49nylrl8ibkv2zzlc0wyhqg7w09kz6hks6";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
jwt = pkgs.fetchgit {
|
|
url = "https://github.com/vacp2p/nim-jwt.git";
|
|
rev = "18f8378de52b241f321c1f9ea905456e89b95c6f";
|
|
sha256 = "1986czmszdxj6g9yr7xn1fx8y2y9mwpb3f1bn9nc6973qawsdm0p";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nimcrypto = pkgs.fetchgit {
|
|
url = "https://github.com/cheatfate/nimcrypto";
|
|
rev = "b3dbc9c4d08e58c5b7bfad6dc7ef2ee52f2f4c08";
|
|
sha256 = "1v4rz42lwcazs6isi3kmjylkisr84mh0kgmlqycx4i885dn3g0l4";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
metrics = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-metrics";
|
|
rev = "11d0cddfb0e711aa2a8c75d1892ae24a64c299fc";
|
|
sha256 = "1jrf2cf7v3iqjsk6grzvivxic1shhaxnvab6d35rxs2kcy6b5dv0";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
secp256k1 = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-secp256k1";
|
|
rev = "d8f1288b7c72f00be5fc2c5ea72bf5cae1eafb15";
|
|
sha256 = "1qjrmwbngb73f6r1fznvig53nyal7wj41d1cmqfksrmivk2sgrn2";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
zlib = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-zlib";
|
|
rev = "e680f269fb01af2c34a2ba879ff281795a5258fe";
|
|
sha256 = "1xw9f1gjsgqihdg7kdkbaq1wankgnx2vn9l3ihc6nqk2jzv5bvk5";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
websock = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-websock";
|
|
rev = "35ae76f1559e835c80f9c1a3943bf995d3dd9eb5";
|
|
sha256 = "1j6dklzb6b6bv2aiglbiyflja2vdpmyxfirv98f49y62mykq0yrw";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
lsquic = pkgs.fetchgit {
|
|
url = "https://github.com/vacp2p/nim-lsquic";
|
|
rev = "4fb03ee7bfb39aecb3316889fdcb60bec3d0936f";
|
|
sha256 = "0qdhcd4hyp185szc9sv3jvwdwc9zp3j0syy7glxv13k9bchfmkfg";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
libp2p = pkgs.fetchgit {
|
|
url = "https://github.com/vacp2p/nim-libp2p";
|
|
rev = "ca48c3718246bb411ff0e354a70cb82d9a28de0d";
|
|
sha256 = "07qfjjrq6w7bj9dbchvcrpla47jidngbrgmigbhl7fh3cfkdabc9";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
stint = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-stint";
|
|
rev = "470b7892561b5179ab20bd389a69217d6213fe58";
|
|
sha256 = "1isfwmbj98qfi5pm9acy0yyvq0vlz38nxp30xl43jx2mmaga2w22";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
taskpools = pkgs.fetchgit {
|
|
url = "https://github.com/status-im/nim-taskpools";
|
|
rev = "9e8ccc754631ac55ac2fd495e167e74e86293edb";
|
|
sha256 = "1y78l33vdjxmb9dkr455pbphxa73rgdsh8m9gpkf4d9b1wm1yivy";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
ffi = pkgs.fetchgit {
|
|
url = "https://github.com/logos-messaging/nim-ffi";
|
|
rev = "f96a5b158add9c321e33ff804f2275a5314a501b";
|
|
sha256 = "1hcv1k3c18rhg2nrndld2b6xx23nfnlcfkm0bidqha4by4hzn9lr";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cbor_serialization = pkgs.fetchgit {
|
|
url = "https://github.com/vacp2p/nim-cbor-serialization";
|
|
rev = "1664160e04d153573373afddc552b9cbf6fbe4dc";
|
|
sha256 = "0c1rj4fk0fcqvsf0yqhxvm8h10aww75gi4yfsjhlczh88ypywii2";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
}
|