From 9c02ef697f468955cc668184352e76eb223a39c7 Mon Sep 17 00:00:00 2001 From: Nizarjh Date: Fri, 23 Jan 2026 18:55:05 +0400 Subject: [PATCH 1/2] New package: zed-editor-0.218.6 --- .../0001-tweak-default-conf-for-privacy.patch | 43 +++++++++++++++++++ .../patches/0002-change-bin-name.patch | 13 ++++++ srcpkgs/zed-editor/template | 29 +++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 srcpkgs/zed-editor/patches/0001-tweak-default-conf-for-privacy.patch create mode 100644 srcpkgs/zed-editor/patches/0002-change-bin-name.patch create mode 100644 srcpkgs/zed-editor/template diff --git a/srcpkgs/zed-editor/patches/0001-tweak-default-conf-for-privacy.patch b/srcpkgs/zed-editor/patches/0001-tweak-default-conf-for-privacy.patch new file mode 100644 index 00000000000000..b355acbb655fe4 --- /dev/null +++ b/srcpkgs/zed-editor/patches/0001-tweak-default-conf-for-privacy.patch @@ -0,0 +1,43 @@ +diff --git a/assets/settings/default.json b/assets/settings/default.json +index efb0cc9..08fc993 100644 +--- a/assets/settings/default.json ++++ b/assets/settings/default.json +@@ -44,7 +44,7 @@ + // "calt": false + }, + // The default font size for text in the editor +- "buffer_font_size": 15, ++ "buffer_font_size": 16, + // The weight of the editor font in standard CSS units from 100 to 900. + "buffer_font_weight": 400, + // Set the buffer's line height. +@@ -1240,9 +1240,9 @@ + // Control what info is collected by Zed. + "telemetry": { + // Send debug info like crash reports. +- "diagnostics": true, ++ "diagnostics": false, + // Send anonymized usage data like what languages you're using Zed with. +- "metrics": true, ++ "metrics": false + }, + // Whether to disable all AI features in Zed. + // +@@ -1250,7 +1250,7 @@ + "disable_ai": false, + // Automatically update Zed. This setting may be ignored on Linux if + // installed through a package manager. +- "auto_update": true, ++ "auto_update": false, + // How to render LSP `textDocument/documentColor` colors in the editor. + // + // Possible values: +@@ -1434,7 +1434,7 @@ + // May take 2 values: + // 1. hour12 + // 2. hour24 +- "hour_format": "hour12", ++ "hour_format": "hour24", + }, + // Status bar-related settings. + "status_bar": { diff --git a/srcpkgs/zed-editor/patches/0002-change-bin-name.patch b/srcpkgs/zed-editor/patches/0002-change-bin-name.patch new file mode 100644 index 00000000000000..54963afb36bf8b --- /dev/null +++ b/srcpkgs/zed-editor/patches/0002-change-bin-name.patch @@ -0,0 +1,13 @@ +diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml +index 54d16da..1ced68d 100644 +--- a/crates/zed/Cargo.toml ++++ b/crates/zed/Cargo.toml +@@ -14,7 +14,7 @@ workspace = true + tracy = ["ztracing/tracy"] + + [[bin]] +-name = "zed" ++name = "zed-editor" + path = "src/zed-main.rs" + + [lib] \ No newline at end of file diff --git a/srcpkgs/zed-editor/template b/srcpkgs/zed-editor/template new file mode 100644 index 00000000000000..f8d59943754fe8 --- /dev/null +++ b/srcpkgs/zed-editor/template @@ -0,0 +1,29 @@ +# Template file for 'zed' +pkgname=zed-editor +version=0.218.6 +revision=1 +archs="x86_64* aarch64*" +build_style=cargo +make_install_args="--path crates/zed" +hostmakedepends="pkg-config protobuf gettext mold clang cmake " +makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel +libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-1.9-devel sqlite-devel libX11-devel" +depends="git" +checkdepends="noto-fonts-ttf" +short_desc="High-performance, multiplayer code editor" +maintainer="Nizarjh " +license="GPL-3.0-or-later, Apache-2.0, AGPL-3.0-or-later" +homepage="https://zed.dev/" +distfiles="https://github.com/zed-industries/zed/archive/v${version}.tar.gz" +checksum=4192fc27529937f5fb7f3a8a95f021f04acdeadd4d205b0239fc90fc008c325a + +post_install() { + vlicense ${wrksrc}/LICENSE-AGPL + APP_NAME="Zed Editor" + DO_STARTUP_NOTIFY="true" + APP_ICON="zed-editor" + APP_CLI="zed-editor" + envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/dev.zed.Zed.desktop + vinstall ${wrksrc}/crates/zed/resources/dev.zed.Zed.desktop 644 usr/share/applications/ + vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png +} From 2b57d7c30fde9069f62a01fe42e3cbbd3d3a88ec Mon Sep 17 00:00:00 2001 From: Nizarjh Date: Fri, 23 Jan 2026 19:11:04 +0400 Subject: [PATCH 2/2] zed-editor: fix xlint issues --- srcpkgs/zed-editor/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/zed-editor/template b/srcpkgs/zed-editor/template index f8d59943754fe8..c90640cb839e52 100644 --- a/srcpkgs/zed-editor/template +++ b/srcpkgs/zed-editor/template @@ -1,4 +1,4 @@ -# Template file for 'zed' +# Template file for 'zed-editor' pkgname=zed-editor version=0.218.6 revision=1 @@ -19,11 +19,11 @@ checksum=4192fc27529937f5fb7f3a8a95f021f04acdeadd4d205b0239fc90fc008c325a post_install() { vlicense ${wrksrc}/LICENSE-AGPL - APP_NAME="Zed Editor" - DO_STARTUP_NOTIFY="true" - APP_ICON="zed-editor" - APP_CLI="zed-editor" - envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/dev.zed.Zed.desktop + APP_NAME="Zed Editor" + DO_STARTUP_NOTIFY="true" + APP_ICON="zed-editor" + APP_CLI="zed-editor" + envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/dev.zed.Zed.desktop vinstall ${wrksrc}/crates/zed/resources/dev.zed.Zed.desktop 644 usr/share/applications/ vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png }