clash-rs: 0.7.5 -> 0.7.7 (#396317)

authored by Weijia Wang and committed by GitHub be58fd03 b61f0c49

+23 -6
+10 -6
pkgs/by-name/cl/clash-rs/package.nix
··· 5 5 protobuf, 6 6 versionCheckHook, 7 7 }: 8 - rustPlatform.buildRustPackage rec { 8 + rustPlatform.buildRustPackage (finalAttrs: { 9 9 pname = "clash-rs"; 10 - version = "0.7.5"; 10 + version = "0.7.7"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "Watfaq"; 14 14 repo = "clash-rs"; 15 - tag = "v${version}"; 16 - hash = "sha256-c4XF0F2ifTvbXTMGiJc1EaGTlS/X5ilZTpXe01uHs4Y="; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-x89sFBQ6bAIHvaRTCxqKKgFKo7PpquVze0R6VicwrJw="; 17 17 }; 18 18 19 19 useFetchCargoVendor = true; 20 - cargoHash = "sha256-ZSwNlknpZ0zKj+sklmO14Ey5DPZ0Wk9xxMiXwIiuRd0="; 20 + cargoHash = "sha256-jfc0Rmt9eEN3ds5Rakj+IcJcUa28CbhiSu4AfqHurf0="; 21 + 22 + patches = [ 23 + ./unbounded-shifts.patch 24 + ]; 21 25 22 26 nativeInstallCheckInputs = [ 23 27 protobuf ··· 53 57 maintainers = with lib.maintainers; [ aaronjheng ]; 54 58 platforms = lib.platforms.linux ++ lib.platforms.darwin; 55 59 }; 56 - } 60 + })
+13
pkgs/by-name/cl/clash-rs/unbounded-shifts.patch
··· 1 + diff --git a/clash_lib/src/lib.rs b/clash_lib/src/lib.rs 2 + index 6ada034..420e465 100644 3 + --- a/clash_lib/src/lib.rs 4 + +++ b/clash_lib/src/lib.rs 5 + @@ -2,7 +2,7 @@ 6 + #![feature(ip)] 7 + #![feature(sync_unsafe_cell)] 8 + #![feature(let_chains)] 9 + -#![cfg_attr(not(version("1.86.0")), feature(unbounded_shifts))] 10 + +#![feature(unbounded_shifts)] 11 + 12 + #[macro_use] 13 + extern crate anyhow;