bump conduwuit #3

Merged
cy merged 2 commits from bump-conduwuit into main 2025-01-20 00:53:14 -05:00
4 changed files with 72 additions and 6 deletions
Showing only changes of commit 6697a8400b - Show all commits

21
flake.lock generated
View file

@ -573,6 +573,7 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-garage": "nixpkgs-garage", "nixpkgs-garage": "nixpkgs-garage",
"nixvim": "nixvim", "nixvim": "nixvim",
"rust-overlay": "rust-overlay_2",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"treefmt": "treefmt" "treefmt": "treefmt"
} }
@ -598,6 +599,26 @@
"type": "github" "type": "github"
} }
}, },
"rust-overlay_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1737340068,
"narHash": "sha256-5UciRckNV+YOZ6y6ASBIb01cySB12whDxgFUK+EqT8g=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "275c824ed9e90e7fd4f96d187bde3670062e721f",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View file

@ -28,8 +28,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
niri.url = "github:sodiboo/niri-flake"; niri = {
niri.inputs.nixpkgs.follows = "nixpkgs"; url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-garage.url = "github:cything/nixpkgs/garage-module"; # unmerged PR nixpkgs-garage.url = "github:cything/nixpkgs/garage-module"; # unmerged PR
}; };
@ -101,7 +107,10 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
config.allowUnfree = true; config.allowUnfree = true;
system = "x86_64-linux"; system = "x86_64-linux";
overlays = [ inputs.niri.overlays.niri ] ++ import ./overlay; overlays = [
inputs.niri.overlays.niri
inputs.rust-overlay.overlays.default
] ++ import ./overlay;
}; };
in in
{ {

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: { conduwuit = prev.conduwuit.override (old: {
rustPlatform = old.rustPlatform // { rustPlatform = newRustPlatform // {
buildRustPackage = buildRustPackage =
args: args:
old.rustPlatform.buildRustPackage ( newRustPlatform.buildRustPackage (
args args
// { // {
version = "0.5.0-rc2"; 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",
]