i3-back: fix build on current version (#461889)
This commit is contained in:
@@ -16,8 +16,11 @@ rustPlatform.buildRustPackage rec {
|
||||
hash = "sha256-xGfX7ttWrcIVhy+MkR5RZr2DCAwIKwGu7zkafHcrjaE=";
|
||||
};
|
||||
|
||||
# The tool needs a nightly compiler.
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
patches = [
|
||||
# `let_chain` feature is not needed anymore with 1.90.
|
||||
# See https://github.com/Cretezy/i3-back/pull/5
|
||||
./remove-feature.patch
|
||||
];
|
||||
|
||||
cargoHash = "sha256-o/um/Ugm3GfDz1daBKxoDD7ailUu6QJ0rj5jcKWB0lM=";
|
||||
|
||||
|
||||
22
pkgs/by-name/i3/i3-back/remove-feature.patch
Normal file
22
pkgs/by-name/i3/i3-back/remove-feature.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 68cbda32f3..0e3f6ad1f6 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "i3-back"
|
||||
version = "0.3.2"
|
||||
-edition = "2021"
|
||||
+edition = "2024"
|
||||
description = "An i3/Sway utility to switch focus to your last focused window. Allows for behavior similar to Alt+Tab on other desktop environments."
|
||||
repository = "https://github.com/Cretezy/i3-back"
|
||||
homepage = "https://github.com/Cretezy/i3-back"
|
||||
diff --git a/src/main.rs b/src/main.rs
|
||||
index e11a2a7550..91a34cab07 100644
|
||||
--- a/src/main.rs
|
||||
+++ b/src/main.rs
|
||||
@@ -1,4 +1,3 @@
|
||||
-#![feature(let_chains)]
|
||||
use std::process;
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
Reference in New Issue
Block a user