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 protobuf, 6 versionCheckHook, 7 }: 8 - rustPlatform.buildRustPackage rec { 9 pname = "clash-rs"; 10 - version = "0.7.5"; 11 12 src = fetchFromGitHub { 13 owner = "Watfaq"; 14 repo = "clash-rs"; 15 - tag = "v${version}"; 16 - hash = "sha256-c4XF0F2ifTvbXTMGiJc1EaGTlS/X5ilZTpXe01uHs4Y="; 17 }; 18 19 useFetchCargoVendor = true; 20 - cargoHash = "sha256-ZSwNlknpZ0zKj+sklmO14Ey5DPZ0Wk9xxMiXwIiuRd0="; 21 22 nativeInstallCheckInputs = [ 23 protobuf ··· 53 maintainers = with lib.maintainers; [ aaronjheng ]; 54 platforms = lib.platforms.linux ++ lib.platforms.darwin; 55 }; 56 - }
··· 5 protobuf, 6 versionCheckHook, 7 }: 8 + rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "clash-rs"; 10 + version = "0.7.7"; 11 12 src = fetchFromGitHub { 13 owner = "Watfaq"; 14 repo = "clash-rs"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-x89sFBQ6bAIHvaRTCxqKKgFKo7PpquVze0R6VicwrJw="; 17 }; 18 19 useFetchCargoVendor = true; 20 + cargoHash = "sha256-jfc0Rmt9eEN3ds5Rakj+IcJcUa28CbhiSu4AfqHurf0="; 21 + 22 + patches = [ 23 + ./unbounded-shifts.patch 24 + ]; 25 26 nativeInstallCheckInputs = [ 27 protobuf ··· 57 maintainers = with lib.maintainers; [ aaronjheng ]; 58 platforms = lib.platforms.linux ++ lib.platforms.darwin; 59 }; 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;