From 59b44f8b524fb8870e72b2adfa7e37a5279b6de7 Mon Sep 17 00:00:00 2001 From: N4CH72HR3R Date: Tue, 13 Jan 2026 03:57:15 +0100 Subject: [PATCH] matrix-continuwuity: use upstream default features --- .../ma/matrix-continuwuity/package.nix | 38 ++----------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/pkgs/by-name/ma/matrix-continuwuity/package.nix b/pkgs/by-name/ma/matrix-continuwuity/package.nix index dbd25700263e..15449b7f7e73 100644 --- a/pkgs/by-name/ma/matrix-continuwuity/package.nix +++ b/pkgs/by-name/ma/matrix-continuwuity/package.nix @@ -10,20 +10,15 @@ nix-update-script, testers, matrix-continuwuity, - enableBlurhashing ? true, - # upstream continuwuity enables jemalloc by default, so we follow suit - enableJemalloc ? true, rust-jemalloc-sys-unprefixed, - enableLiburing ? stdenv.hostPlatform.isLinux, liburing, nixosTests, }: let rocksdb' = (rocksdb.override { - inherit enableLiburing; # rocksdb does not support prefixed jemalloc, which is required on darwin - enableJemalloc = enableJemalloc && !stdenv.hostPlatform.isDarwin; + enableJemalloc = !stdenv.hostPlatform.isDarwin; jemalloc = rust-jemalloc-sys-unprefixed; }).overrideAttrs ( @@ -97,11 +92,9 @@ rustPlatform.buildRustPackage (finalAttrs: { buildInputs = [ bzip2 zstd - ] - ++ lib.optional enableJemalloc [ rust-jemalloc-sys-unprefixed - ] - ++ lib.optional enableLiburing liburing; + liburing + ]; env = { ZSTD_SYS_USE_PKG_CONFIG = true; @@ -109,31 +102,6 @@ rustPlatform.buildRustPackage (finalAttrs: { ROCKSDB_LIB_DIR = "${rocksdb'}/lib"; }; - buildNoDefaultFeatures = true; - # See https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/Cargo.toml - # for available features. - # We enable all default features except jemalloc, blurhashing, and io_uring, which - # we guard behind our own (default-enabled) flags. - buildFeatures = [ - "brotli_compression" - "direct_tls" - "element_hacks" - "gzip_compression" - "media_thumbnail" - "release_max_log_level" - "systemd" - "url_preview" - "zstd_compression" - "bindgen-runtime" - "ldap" - ] - ++ lib.optional enableBlurhashing "blurhashing" - ++ lib.optional enableJemalloc [ - "jemalloc" - "jemalloc_conf" - ] - ++ lib.optional enableLiburing "io_uring"; - passthru = { rocksdb = rocksdb'; # make used rocksdb version available (e.g., for backup scripts) updateScript = nix-update-script { };