use oxalica/rust-overlay to build conduwuit

This commit is contained in:
cy 2025-01-20 00:28:02 -05:00
parent b01a3fd472
commit 6697a8400b
4 changed files with 72 additions and 6 deletions

View file

@ -1,9 +1,17 @@
final: prev: {
final: prev:
let
newRust = final.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
newRustPlatform = final.makeRustPlatform {
cargo = newRust;
rustc = newRust;
};
in
{
conduwuit = prev.conduwuit.override (old: {
rustPlatform = old.rustPlatform // {
rustPlatform = newRustPlatform // {
buildRustPackage =
args:
old.rustPlatform.buildRustPackage (
newRustPlatform.buildRustPackage (
args
// {
version = "0.5.0-rc2";