Compare commits

...
Author SHA1 Message Date
timedout bf7895e631 chore: Bump version again 2026-06-20 17:43:32 -04:00
Henry-Hiles e38c7fd71e chore: use older hashes
Needed for backport.
2026-06-20 16:53:31 -04:00
Henry-Hiles ae9ed36976 fix: use toolchain declared in rust-toolchain.toml for cross rust-std 2026-06-20 15:54:40 -04:00
Henry-Hiles 106d3a5618 fix: change the update-flake-hashes repo to work with the new rust.nix structure 2026-06-20 15:53:30 -04:00
Henry-Hiles b6c1169c05 fix: add rocksdb as a flake package
This fixes the flake-hashes workflow.
2026-06-20 15:53:11 -04:00
Henry-Hiles 396717aa59 fix: dynamically link rocksdb on dynamic nix builds
Fixes liburing error.
2026-06-20 15:53:04 -04:00
8 changed files with 67 additions and 32 deletions

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ jobs:
- name: Get new toolchain hash
run: |
# Set the current sha256 to an empty hash to make `nix build` calculate a new one
awk '/fromToolchainFile *\{/{found=1; print; next} found && /sha256 =/{sub(/sha256 = .*/, "sha256 = lib.fakeSha256;"); found=0} 1' nix/rust.nix > temp.nix
awk '/fromToolchainName *\{/{found=1; print; next} found && /sha256 =/{sub(/sha256 = .*/, "sha256 = lib.fakeSha256;"); found=0} 1' nix/rust.nix > temp.nix
mv temp.nix nix/rust.nix
# Build continuwuity and filter for the new hash
@@ -39,7 +39,7 @@ jobs:
sed -i "s|lib.fakeSha256|\"$new_hash\"|" nix/rust.nix
echo "New hash:"
awk -F'"' '/fromToolchainFile/{found=1; next} found && /sha256 =/{print $2; found=0}' nix/rust.nix
awk -F'"' '/fromToolchainName/{found=1; next} found && /sha256 =/{print $2; found=0}' nix/rust.nix
echo "Expected new hash:"
cat new_toolchain_hash.txt
+4
View File
@@ -1,3 +1,7 @@
# Continuwuity 0.5.11 (2026-06-20 take 2)
This release purely contains some fix for the Nix package. There are no changes to the server itself.
# Continuwuity 0.5.10 (2026-06-20)
## Security
Generated
+11 -11
View File
@@ -960,7 +960,7 @@ dependencies = [
[[package]]
name = "conduwuit"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"aws-lc-rs",
"clap",
@@ -997,7 +997,7 @@ dependencies = [
[[package]]
name = "conduwuit_admin"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"clap",
"conduwuit_api",
@@ -1020,7 +1020,7 @@ dependencies = [
[[package]]
name = "conduwuit_api"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"async-trait",
"axum",
@@ -1055,7 +1055,7 @@ dependencies = [
[[package]]
name = "conduwuit_build_metadata"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"built",
"cargo_metadata",
@@ -1063,7 +1063,7 @@ dependencies = [
[[package]]
name = "conduwuit_core"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"argon2",
"arrayvec",
@@ -1127,7 +1127,7 @@ dependencies = [
[[package]]
name = "conduwuit_database"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"async-channel",
"conduwuit_core",
@@ -1147,7 +1147,7 @@ dependencies = [
[[package]]
name = "conduwuit_macros"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"cargo_toml",
"itertools 0.14.0",
@@ -1158,7 +1158,7 @@ dependencies = [
[[package]]
name = "conduwuit_router"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"axum",
"axum-client-ip",
@@ -1194,7 +1194,7 @@ dependencies = [
[[package]]
name = "conduwuit_service"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"askama",
"async-trait",
@@ -1242,7 +1242,7 @@ dependencies = [
[[package]]
name = "conduwuit_web"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"askama",
"async-trait",
@@ -7017,7 +7017,7 @@ dependencies = [
[[package]]
name = "xtask"
version = "0.5.10"
version = "0.5.11"
dependencies = [
"askama",
"cargo_metadata",
+1 -1
View File
@@ -12,7 +12,7 @@ license = "Apache-2.0"
# See also `rust-toolchain.toml`
readme = "README.md"
repository = "https://forgejo.ellis.link/continuwuation/continuwuity"
version = "0.5.10"
version = "0.5.11"
[workspace.metadata.crane]
name = "conduwuit"
+20 -2
View File
@@ -2,9 +2,10 @@
lib,
self,
stdenv,
liburing,
rocksdb,
craneLib,
pkg-config,
liburing,
rustPlatform,
cargoExtraArgs ? "",
rustflags ? "",
@@ -36,12 +37,17 @@ let
pkg-config
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ liburing ];
doCheck = false;
env = {
CARGO_PROFILE = profile;
RUSTFLAGS = rustflags;
}
// (lib.optionalAttrs (rocksdb != null) {
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
})
// (lib.optionalAttrs (target_cpu != null) {
TARGET_CPU = target_cpu;
});
@@ -52,6 +58,18 @@ craneLib.buildPackage (
inherit cargoExtraArgs;
cargoArtifacts = craneLib.buildDepsOnly attrs;
# Needed to make continuwuity link to rocksdb
postFixup = lib.optionalString (stdenv.hostPlatform.isLinux && rocksdb != null) ''
old_rpath="$(patchelf --print-rpath $out/bin/conduwuit)"
extra_rpath="${
lib.makeLibraryPath [
rocksdb
]
}"
patchelf --set-rpath "$old_rpath:$extra_rpath" $out/bin/conduwuit
'';
meta = {
description = "A community-driven Matrix homeserver in Rust";
mainProgram = "conduwuit";
+11 -4
View File
@@ -9,8 +9,10 @@
self',
lib,
pkgs,
inputs',
system,
craneLib,
mkToolchain,
...
}:
{
@@ -19,7 +21,7 @@
mkPackages =
pkgs:
let
fnx = inputs.fenix.packages.${system};
fnx = inputs'.fenix.packages;
isStatic = pkgs.stdenv.hostPlatform.isMusl;
@@ -28,7 +30,7 @@
if isStatic then
fnx.combine [
self'.packages.stable-toolchain
(fnx.targets.${pkgs.stdenv.hostPlatform.config}.stable).rust-std
(mkToolchain fnx.targets.${pkgs.stdenv.hostPlatform.config}).rust-std
]
else
self'.packages.stable-toolchain
@@ -36,7 +38,10 @@
default = pkgs.callPackage ./continuwuity.nix {
inherit self craneLib;
liburing = (if isStatic then pkgs.pkgsStatic else pkgs).liburing;
rocksdb = if isStatic then null else self'.packages.rocksdb;
# extra features via `cargoExtraArgs`
cargoExtraArgs = "-F http3";
# extra RUSTFLAGS via `rustflags`
@@ -59,10 +64,12 @@
in
{
inherit default max-perf max-perf-haswell;
};
in
(mkPackages pkgs)
{
rocksdb = pkgs.callPackage ./rocksdb.nix { };
}
// (mkPackages pkgs)
// (lib.mapAttrs' (name: value: lib.nameValuePair "${name}-static-x86_64" value) (
mkPackages (
import inputs.nixpkgs {
+5 -3
View File
@@ -1,5 +1,7 @@
{
stdenv,
# stdenv,
# enableJemalloc ? stdenv.hostPlatform.isLinux,
enableJemalloc ? false,
rocksdb,
fetchFromGitea,
rust-jemalloc-sys-unprefixed,
@@ -13,10 +15,10 @@
#
# [1]: https://github.com/tikv/jemallocator/blob/ab0676d77e81268cd09b059260c75b38dbef2d51/jemalloc-sys/src/env.rs#L17
jemalloc = rust-jemalloc-sys-unprefixed;
enableJemalloc = stdenv.hostPlatform.isLinux;
inherit enableJemalloc;
}).overrideAttrs
({
version = "continuwuity-v0.5.0-unstable-2026-03-27";
version = "continuwuity-v0.5.0-unstable-2026-05-19";
src = fetchFromGitea {
domain = "forgejo.ellis.link";
owner = "continuwuation";
+13 -9
View File
@@ -2,22 +2,26 @@
{
perSystem =
{
system,
lib,
inputs',
pkgs,
...
}:
let
mkToolchain =
target:
target.fromToolchainName {
name = (lib.importTOML "${inputs.self}/rust-toolchain.toml").toolchain.channel;
sha256 = "sha256-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
};
in
{
_module.args = { inherit mkToolchain; };
packages =
let
fnx = inputs.fenix.packages.${system};
stable-toolchain = fnx.fromToolchainFile {
file = inputs.self + "/rust-toolchain.toml";
# See also `rust-toolchain.toml`
sha256 = "sha256-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
};
fnx = inputs'.fenix.packages;
stable-toolchain = (mkToolchain fnx).toolchain;
in
{
inherit stable-toolchain;