From 0521c576953c18d3a34be2263259620c891a3491 Mon Sep 17 00:00:00 2001 From: Jens Krause <47693+sectore@users.noreply.github.com> Date: Fri, 26 Sep 2025 17:05:28 +0200 Subject: [PATCH] Rust 1.90.0 (#95) * Rust 1.90.0 * Make sound work again on Linux Reverts changes of #77. It works before, but errors after updating to Rust 1.90.0 and to latest Nix packages. --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- flake.lock | 24 ++++++++++++------------ flake.nix | 15 +++++++++------ rust-toolchain.toml | 2 +- 5 files changed, 29 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a3a79b..955fdc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [unreleased] + +### Misc. + +- (deps) Rust 1.90.0 [#95](https://github.com/sectore/timr-tui/pull/95) + ## v1.4.0 - 2025-09-02 ### Features diff --git a/Cargo.toml b/Cargo.toml index 81eb1c7..a5869c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "1.4.0" description = "TUI to organize your time: Pomodoro, Countdown, Timer." edition = "2024" # Reminder: Always keep `channel` in `rust-toolchain.toml` in sync with `rust-version`. -rust-version = "1.89.0" +rust-version = "1.90.0" homepage = "https://github.com/sectore/timr-tui" repository = "https://github.com/sectore/timr-tui" readme = "README.md" diff --git a/flake.lock b/flake.lock index a72a227..cd67329 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "crane": { "locked": { - "lastModified": 1754269165, - "narHash": "sha256-0tcS8FHd4QjbCVoxN9jI+PjHgA4vc/IjkUSp+N3zy0U=", + "lastModified": 1758758545, + "narHash": "sha256-NU5WaEdfwF6i8faJ2Yh+jcK9vVFrofLcwlD/mP65JrI=", "owner": "ipetkov", "repo": "crane", - "rev": "444e81206df3f7d92780680e45858e31d2f07a08", + "rev": "95d528a5f54eaba0d12102249ce42f4d01f4e364", "type": "github" }, "original": { @@ -23,11 +23,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1755240331, - "narHash": "sha256-wEtw76+R/TOHEIjYOnxADC91G6s422HGruAngbjzsDw=", + "lastModified": 1758782550, + "narHash": "sha256-olCvyP5r6+HQTl2EUudtjlA5UammsBpkzAl0l9+utZc=", "owner": "nix-community", "repo": "fenix", - "rev": "3f076d4502001c64877099093318b2dbd8b062a1", + "rev": "32f4e350c03cc5762be811e9c700e8696cd13c02", "type": "github" }, "original": { @@ -56,11 +56,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1755027561, - "narHash": "sha256-IVft239Bc8p8Dtvf7UAACMG5P3ZV+3/aO28gXpGtMXI=", + "lastModified": 1758690382, + "narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "005433b926e16227259a1843015b5b2b7f7d1fc3", + "rev": "e643668fd71b949c53f8626614b21ff71a07379d", "type": "github" }, "original": { @@ -81,11 +81,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1755004716, - "narHash": "sha256-TbhPR5Fqw5LjAeI3/FOPhNNFQCF3cieKCJWWupeZmiA=", + "lastModified": 1758620797, + "narHash": "sha256-Ly4rHgrixFMBnkbMursVt74mxnntnE6yVdF5QellJ+A=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "b2a58b8c6eff3c3a2c8b5c70dbf69ead78284194", + "rev": "905641f3520230ad6ef421bcf5da9c6b49f2479b", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 941a614..6e0690a 100644 --- a/flake.nix +++ b/flake.nix @@ -23,8 +23,8 @@ fenix.packages.${system}.fromToolchainFile { file = ./rust-toolchain.toml; - #sha256 = nixpkgs.lib.fakeSha256; - sha256 = "sha256-+9FmLhAOezBZCOziO0Qct1NOrfpjNsXxc/8I0c7BdKE="; + # sha256 = nixpkgs.lib.fakeSha256; + sha256 = "sha256-SJwZ8g0zF2WrKDVmHrVG3pD2RGoQeo24MEXnNx5FyuI="; }; craneLib = (crane.mkLib pkgs).overrideToolchain toolchain; @@ -85,15 +85,18 @@ pkgs.nixd pkgs.alejandra ] - # some extra pkgs needed to play sound on Linux + # pkgs needed to play sound on Linux ++ lib.optionals stdenv.isLinux [ pkgs.pkg-config - (pkgs.alsa-lib-with-plugins.override { - plugins = [pkgs.alsa-plugins pkgs.pipewire]; - }) + pkgs.pipewire + pkgs.alsa-lib ]; inherit (commonArgs) src; + + # Environment variables needed discover ALSA/PipeWire properly on Linux + LD_LIBRARY_PATH = lib.optionalString stdenv.isLinux "${pkgs.alsa-lib}/lib:${pkgs.pipewire}/lib"; + ALSA_PLUGIN_DIR = lib.optionalString stdenv.isLinux "${pkgs.pipewire}/lib/alsa-lib"; }; }); } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b6e8351..b24dca8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,6 +1,6 @@ [toolchain] # Reminder: Always keep `rust-version` in `Cargo.toml` in sync with `channel`. -channel = "1.89.0" +channel = "1.90.0" components = ["clippy", "rustfmt", "rust-src", "rust-analyzer"] targets = ["x86_64-pc-windows-gnu", "x86_64-unknown-linux-musl"] profile = "minimal"