mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
clash-rs: 0.7.5 -> 0.7.7
This commit is contained in:
parent
8399dc7d28
commit
9557f3be47
2 changed files with 23 additions and 6 deletions
|
@ -5,19 +5,23 @@
|
||||||
protobuf,
|
protobuf,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "clash-rs";
|
pname = "clash-rs";
|
||||||
version = "0.7.5";
|
version = "0.7.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Watfaq";
|
owner = "Watfaq";
|
||||||
repo = "clash-rs";
|
repo = "clash-rs";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-c4XF0F2ifTvbXTMGiJc1EaGTlS/X5ilZTpXe01uHs4Y=";
|
hash = "sha256-x89sFBQ6bAIHvaRTCxqKKgFKo7PpquVze0R6VicwrJw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-ZSwNlknpZ0zKj+sklmO14Ey5DPZ0Wk9xxMiXwIiuRd0=";
|
cargoHash = "sha256-jfc0Rmt9eEN3ds5Rakj+IcJcUa28CbhiSu4AfqHurf0=";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./unbounded-shifts.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeInstallCheckInputs = [
|
nativeInstallCheckInputs = [
|
||||||
protobuf
|
protobuf
|
||||||
|
@ -53,4 +57,4 @@ rustPlatform.buildRustPackage rec {
|
||||||
maintainers = with lib.maintainers; [ aaronjheng ];
|
maintainers = with lib.maintainers; [ aaronjheng ];
|
||||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
13
pkgs/by-name/cl/clash-rs/unbounded-shifts.patch
Normal file
13
pkgs/by-name/cl/clash-rs/unbounded-shifts.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/clash_lib/src/lib.rs b/clash_lib/src/lib.rs
|
||||||
|
index 6ada034..420e465 100644
|
||||||
|
--- a/clash_lib/src/lib.rs
|
||||||
|
+++ b/clash_lib/src/lib.rs
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
#![feature(ip)]
|
||||||
|
#![feature(sync_unsafe_cell)]
|
||||||
|
#![feature(let_chains)]
|
||||||
|
-#![cfg_attr(not(version("1.86.0")), feature(unbounded_shifts))]
|
||||||
|
+#![feature(unbounded_shifts)]
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
extern crate anyhow;
|
Loading…
Add table
Add a link
Reference in a new issue