mirror of
https://github.com/logos-messaging/logos-chat.git
synced 2026-02-27 20:33:07 +00:00
wip
This commit is contained in:
parent
92dd2c8093
commit
f9331976d4
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
||||
*.dSYM
|
||||
nimble.develop
|
||||
nimble.paths
|
||||
/rust-bundle
|
||||
|
||||
|
||||
/nimcache
|
||||
|
||||
2
Makefile
2
Makefile
@ -75,7 +75,7 @@ NIM_PARAMS := $(NIM_PARAMS) -d:git_version=\"$(GIT_VERSION)\"
|
||||
## Dependencies ##
|
||||
##################
|
||||
|
||||
RUST_BUNDLE_LIB := rust-bundle/target/release/lib_rust_bundle.a
|
||||
RUST_BUNDLE_LIB := rust-bundle/target/release/librust_bundle.a
|
||||
|
||||
# libchat and rln each embed Rust std when built as staticlibs; linking both
|
||||
# causes duplicate-symbol errors. rust-bundle/ links them as rlibs so std
|
||||
|
||||
@ -14,9 +14,9 @@ in rPlatform.buildRustPackage {
|
||||
|
||||
cargoLock = {
|
||||
lockFile = src + "/rust-bundle/Cargo.lock";
|
||||
# Add outputHashes here for any git/non-registry deps that appear in
|
||||
# rust-bundle/Cargo.lock (run `nix build` once; it will report missing hashes).
|
||||
outputHashes = {};
|
||||
outputHashes = {
|
||||
"chat-proto-0.1.0" = "sha256-aCl80VOIkd/GK3gnmRuFoSAvPBfeE/FKCaNlLt5AbUU=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl pkg-config cmake ];
|
||||
@ -27,8 +27,8 @@ in rPlatform.buildRustPackage {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/lib
|
||||
cp rust-bundle/target/*/release/lib_rust_bundle.a $out/lib/ 2>/dev/null || true
|
||||
cp rust-bundle/target/release/lib_rust_bundle.a $out/lib/ 2>/dev/null || true
|
||||
find . -name "librust_bundle.a" -path "*/release/*" -exec cp {} $out/lib/ \;
|
||||
test -f $out/lib/librust_bundle.a
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
||||
@ -19,7 +19,7 @@ in stdenv.mkDerivation {
|
||||
inherit src;
|
||||
|
||||
NIMFLAGS = lib.concatStringsSep " " [
|
||||
"--passL:${rustBundleDrv}/lib/lib_rust_bundle.a"
|
||||
"--passL:${rustBundleDrv}/lib/librust_bundle.a"
|
||||
"--passL:-lm"
|
||||
"-d:miniupnpcUseSystemLibs"
|
||||
"-d:libnatpmpUseSystemLibs"
|
||||
|
||||
6505
rust-bundle/Cargo.lock
generated
Normal file
6505
rust-bundle/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -7,9 +7,6 @@ edition = "2021"
|
||||
name = "rust_bundle"
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
|
||||
[dependencies]
|
||||
libchat = { path = "../vendor/libchat/conversations" }
|
||||
rln = { path = "../vendor/nwaku/vendor/zerokit/rln", features = ["arkzkey"] }
|
||||
|
||||
2
vendor/libchat
vendored
2
vendor/libchat
vendored
@ -1 +1 @@
|
||||
Subproject commit 681c17ccaecd7a171c46cc96ff61d1d3db7fd7a9
|
||||
Subproject commit a058472953294ac53323779da3b43d56d7d95888
|
||||
Loading…
x
Reference in New Issue
Block a user