nixos-config/overlay/conduwuit/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

final: prev:
let
newRust = final.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
newRustPlatform = final.makeRustPlatform {
cargo = newRust;
rustc = newRust;
};
in
{
2025-01-05 16:45:18 -05:00
conduwuit = prev.conduwuit.override (old: {
rustPlatform = newRustPlatform // {
2025-01-05 16:45:18 -05:00
buildRustPackage =
args:
newRustPlatform.buildRustPackage (
2025-01-05 16:45:18 -05:00
args
2025-01-09 03:00:00 -05:00
// {
2025-01-05 16:45:18 -05:00
version = "0.5.0-rc2";
src = final.fetchFromGitHub {
owner = "girlbossceo";
repo = "conduwuit";
2025-01-19 22:34:36 -05:00
rev = "5b8464252c2c03edf65e43153be026dbb768a12a";
hash = "sha256-yNdxoVZX13QUDJYM6zTMY9ExvacTqB+f0MLvDreSW8U=";
2025-01-05 16:45:18 -05:00
};
doCheck = false;
2025-01-19 22:34:36 -05:00
cargoHash = "sha256-g19UujLI9d4aw+1273gfC17LDLOciqBvuLhe/VCsh80=";
2025-01-05 16:45:18 -05:00
# unstable has this set to "conduit"
meta.mainProgram = "conduwuit";
2025-01-09 03:00:00 -05:00
buildFeatures = [
"brotli_compression"
"element_hacks"
"gzip_compression"
2025-01-09 15:38:08 -05:00
"release_max_log_level" # without this feature to enable debug logging
2025-01-09 03:00:00 -05:00
"sentry_telemetry"
"systemd"
"zstd_compression"
"jemalloc"
"io_uring"
];
2025-01-05 16:45:18 -05:00
}
);
};
});
}