dont build with zlib in the nix flake
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
ecea0cff69
commit
c92678ecbe
5 changed files with 12 additions and 8 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -3685,7 +3685,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rust-librocksdb-sys"
|
name = "rust-librocksdb-sys"
|
||||||
version = "0.32.0+9.10.0"
|
version = "0.32.0+9.10.0"
|
||||||
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=513133a3dc24b667f32933aa3247c6ec71a958f3#513133a3dc24b667f32933aa3247c6ec71a958f3"
|
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=a5d5358ca1358f828283e1558cf6a402b6cbea34#a5d5358ca1358f828283e1558cf6a402b6cbea34"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"bzip2-sys",
|
"bzip2-sys",
|
||||||
|
@ -3702,7 +3702,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rust-rocksdb"
|
name = "rust-rocksdb"
|
||||||
version = "0.36.0"
|
version = "0.36.0"
|
||||||
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=513133a3dc24b667f32933aa3247c6ec71a958f3#513133a3dc24b667f32933aa3247c6ec71a958f3"
|
source = "git+https://github.com/girlbossceo/rust-rocksdb-zaidoon1?rev=a5d5358ca1358f828283e1558cf6a402b6cbea34#a5d5358ca1358f828283e1558cf6a402b6cbea34"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"rust-librocksdb-sys",
|
"rust-librocksdb-sys",
|
||||||
|
|
|
@ -389,7 +389,6 @@ features = [
|
||||||
"mt_static",
|
"mt_static",
|
||||||
"lz4",
|
"lz4",
|
||||||
"zstd",
|
"zstd",
|
||||||
"zlib",
|
|
||||||
"bzip2",
|
"bzip2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
2
deps/rust-rocksdb/Cargo.toml
vendored
2
deps/rust-rocksdb/Cargo.toml
vendored
|
@ -27,7 +27,7 @@ malloc-usable-size = ["rust-rocksdb/malloc-usable-size"]
|
||||||
|
|
||||||
[dependencies.rust-rocksdb]
|
[dependencies.rust-rocksdb]
|
||||||
git = "https://github.com/girlbossceo/rust-rocksdb-zaidoon1"
|
git = "https://github.com/girlbossceo/rust-rocksdb-zaidoon1"
|
||||||
rev = "513133a3dc24b667f32933aa3247c6ec71a958f3"
|
rev = "a5d5358ca1358f828283e1558cf6a402b6cbea34"
|
||||||
#branch = "master"
|
#branch = "master"
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
|
|
|
@ -64,8 +64,10 @@
|
||||||
patches = [];
|
patches = [];
|
||||||
cmakeFlags = pkgs.lib.subtractLists
|
cmakeFlags = pkgs.lib.subtractLists
|
||||||
[
|
[
|
||||||
# no real reason to have snappy, no one uses this
|
# no real reason to have snappy or zlib, no one uses this
|
||||||
"-DWITH_SNAPPY=1"
|
"-DWITH_SNAPPY=1"
|
||||||
|
"-DZLIB=1"
|
||||||
|
"-DWITH_ZLIB=1"
|
||||||
# we dont need to use ldb or sst_dump (core_tools)
|
# we dont need to use ldb or sst_dump (core_tools)
|
||||||
"-DWITH_CORE_TOOLS=1"
|
"-DWITH_CORE_TOOLS=1"
|
||||||
# we dont need to build rocksdb tests
|
# we dont need to build rocksdb tests
|
||||||
|
@ -82,6 +84,8 @@
|
||||||
++ [
|
++ [
|
||||||
# no real reason to have snappy, no one uses this
|
# no real reason to have snappy, no one uses this
|
||||||
"-DWITH_SNAPPY=0"
|
"-DWITH_SNAPPY=0"
|
||||||
|
"-DZLIB=0"
|
||||||
|
"-DWITH_ZLIB=0"
|
||||||
# we dont need to use ldb or sst_dump (core_tools)
|
# we dont need to use ldb or sst_dump (core_tools)
|
||||||
"-DWITH_CORE_TOOLS=0"
|
"-DWITH_CORE_TOOLS=0"
|
||||||
# we dont need trace tools
|
# we dont need trace tools
|
||||||
|
@ -171,7 +175,8 @@
|
||||||
sccache
|
sccache
|
||||||
]
|
]
|
||||||
# liburing is Linux-exclusive
|
# liburing is Linux-exclusive
|
||||||
++ lib.optional stdenv.hostPlatform.isLinux liburing)
|
++ lib.optional stdenv.hostPlatform.isLinux liburing
|
||||||
|
++ lib.optional stdenv.hostPlatform.isLinux numactl)
|
||||||
++ scope.main.buildInputs
|
++ scope.main.buildInputs
|
||||||
++ scope.main.propagatedBuildInputs
|
++ scope.main.propagatedBuildInputs
|
||||||
++ scope.main.nativeBuildInputs;
|
++ scope.main.nativeBuildInputs;
|
||||||
|
|
|
@ -379,8 +379,8 @@ impl Service {
|
||||||
.active_local_users_in_room(&pdu.room_id)
|
.active_local_users_in_room(&pdu.room_id)
|
||||||
.map(ToOwned::to_owned)
|
.map(ToOwned::to_owned)
|
||||||
// Don't notify the sender of their own events, and dont send from ignored users
|
// Don't notify the sender of their own events, and dont send from ignored users
|
||||||
.ready_filter(|user| user != &pdu.sender)
|
.ready_filter(|user| *user != pdu.sender)
|
||||||
.filter_map(|recipient_user| async move { (!self.services.users.user_is_ignored(&pdu.sender, recipient_user).await).then_some(recipient_user) })
|
.filter_map(|recipient_user| async move { (!self.services.users.user_is_ignored(&pdu.sender, &recipient_user).await).then_some(recipient_user) })
|
||||||
.collect()
|
.collect()
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue