Skip to content

Commit 759a78a

Browse files
authored
zed-editor: 0.184.10 -> 0.186.8 (#407051)
2 parents 51b2808 + 1941c80 commit 759a78a

File tree

2 files changed

+60
-3
lines changed

2 files changed

+60
-3
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
diff --git a/Cargo.lock b/Cargo.lock
2+
index 22427fb..75a924a 100644
3+
--- a/Cargo.lock
4+
+++ b/Cargo.lock
5+
@@ -12162,43 +12162,6 @@ dependencies = [
6+
"winreg 0.50.0",
7+
]
8+
9+
-[[package]]
10+
-name = "reqwest"
11+
-version = "0.12.15"
12+
-source = "registry+https://github.com/rust-lang/crates.io-index"
13+
-checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb"
14+
-dependencies = [
15+
- "base64 0.22.1",
16+
- "bytes 1.10.1",
17+
- "futures-channel",
18+
- "futures-core",
19+
- "futures-util",
20+
- "http 1.3.1",
21+
- "http-body 1.0.1",
22+
- "http-body-util",
23+
- "hyper 1.6.0",
24+
- "hyper-util",
25+
- "ipnet",
26+
- "js-sys",
27+
- "log",
28+
- "mime",
29+
- "once_cell",
30+
- "percent-encoding",
31+
- "pin-project-lite",
32+
- "serde",
33+
- "serde_json",
34+
- "serde_urlencoded",
35+
- "sync_wrapper 1.0.2",
36+
- "tokio",
37+
- "tower 0.5.2",
38+
- "tower-service",
39+
- "url",
40+
- "wasm-bindgen",
41+
- "wasm-bindgen-futures",
42+
- "web-sys",
43+
- "windows-registry 0.4.0",
44+
-]
45+
-
46+
[[package]]
47+
name = "reqwest"
48+
version = "0.12.15"

pkgs/by-name/ze/zed-editor/package.nix

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ let
9999
in
100100
rustPlatform.buildRustPackage (finalAttrs: {
101101
pname = "zed-editor";
102-
version = "0.184.10";
102+
version = "0.186.8";
103103

104104
outputs =
105105
[ "out" ]
@@ -111,7 +111,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
111111
owner = "zed-industries";
112112
repo = "zed";
113113
tag = "v${finalAttrs.version}";
114-
hash = "sha256-AtccwZueh4kJZNWR+wUkPx5pe4izyTrm4LJYe99OyaM=";
114+
hash = "sha256-oSmwEtF8VWSKcBlL11MMThBAJFisXwWQjZAzcNIptt0=";
115115
};
116116

117117
patches = [
@@ -121,15 +121,24 @@ rustPlatform.buildRustPackage (finalAttrs: {
121121
./0001-linux-linker.patch
122122
];
123123

124+
cargoPatches = [
125+
./0002-fix-duplicate-reqwest.patch
126+
];
127+
124128
postPatch =
125129
# Dynamically link WebRTC instead of static
126130
''
127131
substituteInPlace $cargoDepsCopy/webrtc-sys-*/build.rs \
128132
--replace-fail "cargo:rustc-link-lib=static=webrtc" "cargo:rustc-link-lib=dylib=webrtc"
133+
134+
# Zed team renamed the function but forgot to update its usage in this file
135+
# We rename it ourselves for now, until upstream fixes the issue
136+
substituteInPlace $cargoDepsCopy/reqwest-0.12*/src/blocking/client.rs \
137+
--replace-fail "inner.redirect(policy)" "inner.redirect_policy(policy)"
129138
'';
130139

131140
useFetchCargoVendor = true;
132-
cargoHash = "sha256-Kd6z3oUuiqLpOC6J2GZTTQd+1bKCnJNtfBgaWJkN0ho=";
141+
cargoHash = "sha256-WH6cQa6DChkUtqh+irIz2hJd5/RW/oln+TZPHunEmNk=";
133142

134143
nativeBuildInputs =
135144
[

0 commit comments

Comments
 (0)