Conversation
|
Oh, looks like we need #387337? Not sure why that didn't show up locally. |
|
Eval has failed for some reason. Can you please rebase and force-push? |
|
Thanks, but you have introduced a merge commit instead of rebasing. Can you properly rebase and then force-push so as to have a single commit on your branch?. |
|
Yeah, sorry I assumed github wouldn't do that with the UI and then it took me a moment to fetch nixpkgs master to fix it. I'm not sure it'll fix the issue given I was only about 20 commits behind though. I assume it's the issue fixed by #387337 given this seems to be the issue in the logs. |
drupol
left a comment
There was a problem hiding this comment.
Diff LGTM, thanks for this !
|
What is this build issue ? |
Has to be #359340 right? Due to changes in dependencies in this new zed version. |
|
This is seriously starting to get be a PITA, we got to get that merged as soon as possible atp. |
|
v0.185.11 is out |
|
0.185.12 now |
|
looks like that hasn't fixed it :( |
Yeah, im currently working on a flake that uses the patched rustPlatform, but i'm having issues with dependency patching (the way the new rustPlatform does dependencies breaks the current solution to the webrtc-sys dependency) |
|
For anyone who want's to test out the latest version before the breaking change gets pushed (or this pull request gets resolved through some other means), I've made https://github.com/HPsaucii/zed-editor-flake I haven't had the time to fully build it yet, but everything should work fine :) |
FYI: in theory, you just have to swap out |
|
Also: this patch should fix the duplication issue without my fix PR: diff --git a/pkgs/by-name/ze/zed-editor/package.nix b/pkgs/by-name/ze/zed-editor/package.nix
index 09d3748497dd..82b1adb52b70 100644
--- a/pkgs/by-name/ze/zed-editor/package.nix
+++ b/pkgs/by-name/ze/zed-editor/package.nix
@@ -121,6 +121,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
./0001-linux-linker.patch
];
+ cargoPatches = [
+ # reqwest 0.12.15 is present both as a git-based crate and as the plain crates.io crate
+ ./remove-duplicate-dep.patch
+ ];
+
postPatch =
# Dynamically link WebRTC instead of static
''
@@ -129,7 +134,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
'';
useFetchCargoVendor = true;
- cargoHash = "sha256-VPg7gSfGO7WM/1NFEZqTaVZKzcOwkwHrA2CjnW0bevY=";
+ cargoHash = "sha256-K/cK90Y1hfFl0kFw/G+6z/4GnSpx/38SwwtoEervGHk=";
nativeBuildInputs =
[
diff --git a/pkgs/by-name/ze/zed-editor/remove-duplicate-dep.patch b/pkgs/by-name/ze/zed-editor/remove-duplicate-dep.patch
new file mode 100644
index 000000000000..6d6dd619cb53
--- /dev/null
+++ b/pkgs/by-name/ze/zed-editor/remove-duplicate-dep.patch
@@ -0,0 +1,48 @@
+diff --git a/Cargo.lock b/Cargo.lock
+index 22427fb..75a924a 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -12162,43 +12162,6 @@ dependencies = [
+ "winreg 0.50.0",
+ ]
+
+-[[package]]
+-name = "reqwest"
+-version = "0.12.15"
+-source = "registry+https://github.com/rust-lang/crates.io-index"
+-checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb"
+-dependencies = [
+- "base64 0.22.1",
+- "bytes 1.10.1",
+- "futures-channel",
+- "futures-core",
+- "futures-util",
+- "http 1.3.1",
+- "http-body 1.0.1",
+- "http-body-util",
+- "hyper 1.6.0",
+- "hyper-util",
+- "ipnet",
+- "js-sys",
+- "log",
+- "mime",
+- "once_cell",
+- "percent-encoding",
+- "pin-project-lite",
+- "serde",
+- "serde_json",
+- "serde_urlencoded",
+- "sync_wrapper 1.0.2",
+- "tokio",
+- "tower 0.5.2",
+- "tower-service",
+- "url",
+- "wasm-bindgen",
+- "wasm-bindgen-futures",
+- "web-sys",
+- "windows-registry 0.4.0",
+-]
+-
+ [[package]]
+ name = "reqwest"
+ version = "0.12.15"
|
.13 now |
Nevermind, doesn't work... |
yup, figured that one out on my own, as seen in the flake i linked above |
|
also @TomaSajt i experimented with patching the cargo.lock / cargo.toml directly, and couldn't get it to work. Either way, it would be pretty bad form to include that sort of fix to nixpkgs. |
I agree it's very hacky, but I don't think it's necessarily wrong to include in nixpkgs, IMO. If we're lucky, the git based crate only contains changes compared to the crates-io crate that don't change the API. |
|
fair enough, either way, this probably isn't getting merged. Im just working on the version bump to v0.185.13, a binary package (done), and exposed FHS packages, and then i'll push to my flake again |
|
new changes to https://github.com/HPsaucii/zed-editor-flake have been pushed, has v0.185.13, fhs, and binary build support. It should be in a state usable by most people. (except maybe mac users) |
Used that before the last commit on NixOS. Took 20 minutes, but compiled and resulted in a up to date version, thank you! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
.14 and .15 also released in the meantime. Just keeping this up to date. EDIT (2025-05-12): Updated to 0.185.16 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
I just checked this PR out and tried to build with Edit: never mind, I just now see that it is the same error posted above. |
|
@Tebro yeah, in the meantime I'd suggest https://github.com/HPsaucii/zed-editor-flake |
|
Superseded by #407051 |
Diff
Fixes #404990
Note: this PR is currently blocked by issues with the vendoring of cargo dependencies.
See: #387337 and #282798
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.