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";

View file

@ -0,0 +1,28 @@
# This is the authoritiative configuration of this project's Rust toolchain.
#
# Other files that need upkeep when this changes:
#
# * `Cargo.toml`
# * `flake.nix`
#
# Search in those files for `rust-toolchain.toml` to find the relevant places.
# If you're having trouble making the relevant changes, bug a maintainer.
[toolchain]
channel = "1.84.0"
profile = "minimal"
components = [
# For rust-analyzer
"rust-src",
"rust-analyzer",
# For CI and editors
"rustfmt",
"clippy",
]
targets = [
#"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
#"aarch64-apple-darwin",
]