zed-editor: 0.176.1 -> 0.176.2 (#387735)

authored by Gaétan Lepage and committed by GitHub 39935919 40754b99

+25 -20
+25 -20
pkgs/by-name/ze/zed-editor/package.nix
··· 33 git, 34 apple-sdk_15, 35 darwinMinVersionHook, 36 - makeWrapper, 37 nodejs, 38 libGL, 39 libX11, ··· 93 ''; 94 }; 95 }; 96 in 97 - rustPlatform.buildRustPackage rec { 98 pname = "zed-editor"; 99 - version = "0.176.1"; 100 101 - outputs = [ "out" ] ++ lib.optional buildRemoteServer "remote_server"; 102 103 src = fetchFromGitHub { 104 owner = "zed-industries"; 105 repo = "zed"; 106 - tag = "v${version}"; 107 - hash = "sha256-Onf3mce327oLbvBPTkJIzJNAf145/ogFK+J6+Asuh9w="; 108 }; 109 110 patches = [ ··· 125 126 # Dynamically link WebRTC instead of static 127 postPatch = '' 128 - substituteInPlace ../${pname}-${version}-vendor/webrtc-sys-*/build.rs \ 129 --replace-fail "cargo:rustc-link-lib=static=webrtc" "cargo:rustc-link-lib=dylib=webrtc" 130 ''; 131 132 useFetchCargoVendor = true; 133 - cargoHash = "sha256-hlX4IMpsEqwYrzDvzFUhh6PVqM9U+4kp/bBYG08BPQA="; 134 135 nativeBuildInputs = 136 [ ··· 143 rustPlatform.bindgenHook 144 cargo-about 145 ] 146 - ++ lib.optionals stdenv.hostPlatform.isLinux [ makeWrapper ] 147 ++ lib.optionals stdenv.hostPlatform.isDarwin [ cargo-bundle ]; 148 149 dontUseCmakeConfigure = true; ··· 179 cargoBuildFlags = [ 180 "--package=zed" 181 "--package=cli" 182 - ] ++ lib.optional buildRemoteServer "--package=remote_server"; 183 184 # Required on darwin because we don't have access to the 185 # proprietary Metal shader compiler. ··· 189 ZSTD_SYS_USE_PKG_CONFIG = true; 190 FONTCONFIG_FILE = makeFontsConf { 191 fontDirectories = [ 192 - "${src}/assets/fonts/plex-mono" 193 - "${src}/assets/fonts/plex-sans" 194 ]; 195 }; 196 # Setting this environment variable allows to disable auto-updates 197 # https://zed.dev/docs/development/linux#notes-for-packaging-zed 198 ZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled."; 199 # Used by `zed --version` 200 - RELEASE_VERSION = version; 201 LK_CUSTOM_WEBRTC = livekit-libwebrtc; 202 }; 203 204 - RUSTFLAGS = if withGLES then "--cfg gles" else ""; 205 - gpu-lib = if withGLES then libglvnd else vulkan-loader; 206 207 preBuild = '' 208 bash script/generate-licenses ··· 270 install -Dm755 $release_target/zed $out/libexec/zed-editor 271 install -Dm755 $release_target/cli $out/bin/zeditor 272 273 - install -Dm644 ${src}/crates/zed/resources/app-icon@2x.png $out/share/icons/hicolor/1024x1024@2x/apps/zed.png 274 - install -Dm644 ${src}/crates/zed/resources/app-icon.png $out/share/icons/hicolor/512x512/apps/zed.png 275 276 # extracted from https://github.com/zed-industries/zed/blob/v0.141.2/script/bundle-linux (envsubst) 277 # and https://github.com/zed-industries/zed/blob/v0.141.2/script/install.sh (final desktop file name) ··· 310 { 311 remoteServerVersion = testers.testVersion { 312 package = zed-editor.remote_server; 313 - command = "zed-remote-server-stable-${version} version"; 314 }; 315 } 316 // lib.optionalAttrs stdenv.hostPlatform.isLinux { ··· 321 meta = { 322 description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"; 323 homepage = "https://zed.dev"; 324 - changelog = "https://github.com/zed-industries/zed/releases/tag/v${version}"; 325 license = lib.licenses.gpl3Only; 326 maintainers = with lib.maintainers; [ 327 GaetanLepage ··· 330 mainProgram = "zeditor"; 331 platforms = lib.platforms.linux ++ lib.platforms.darwin; 332 }; 333 - }
··· 33 git, 34 apple-sdk_15, 35 darwinMinVersionHook, 36 + makeBinaryWrapper, 37 nodejs, 38 libGL, 39 libX11, ··· 93 ''; 94 }; 95 }; 96 + 97 + gpu-lib = if withGLES then libglvnd else vulkan-loader; 98 in 99 + rustPlatform.buildRustPackage (finalAttrs: { 100 pname = "zed-editor"; 101 + version = "0.176.2"; 102 103 + outputs = 104 + [ "out" ] 105 + ++ lib.optionals buildRemoteServer [ 106 + "remote_server" 107 + ]; 108 109 src = fetchFromGitHub { 110 owner = "zed-industries"; 111 repo = "zed"; 112 + tag = "v${finalAttrs.version}"; 113 + hash = "sha256-uTq9/skBMz8n2NjGBQKOIOMp/rTDL+azEUzV4jTUJvE="; 114 }; 115 116 patches = [ ··· 131 132 # Dynamically link WebRTC instead of static 133 postPatch = '' 134 + substituteInPlace $cargoDepsCopy/webrtc-sys-*/build.rs \ 135 --replace-fail "cargo:rustc-link-lib=static=webrtc" "cargo:rustc-link-lib=dylib=webrtc" 136 ''; 137 138 useFetchCargoVendor = true; 139 + cargoHash = "sha256-b4YTVrz2nOwQnVU42E+LD1YjsUAWN7+fCr2z8IVwH6o="; 140 141 nativeBuildInputs = 142 [ ··· 149 rustPlatform.bindgenHook 150 cargo-about 151 ] 152 + ++ lib.optionals stdenv.hostPlatform.isLinux [ makeBinaryWrapper ] 153 ++ lib.optionals stdenv.hostPlatform.isDarwin [ cargo-bundle ]; 154 155 dontUseCmakeConfigure = true; ··· 185 cargoBuildFlags = [ 186 "--package=zed" 187 "--package=cli" 188 + ] ++ lib.optionals buildRemoteServer [ "--package=remote_server" ]; 189 190 # Required on darwin because we don't have access to the 191 # proprietary Metal shader compiler. ··· 195 ZSTD_SYS_USE_PKG_CONFIG = true; 196 FONTCONFIG_FILE = makeFontsConf { 197 fontDirectories = [ 198 + "${finalAttrs.src}/assets/fonts/plex-mono" 199 + "${finalAttrs.src}/assets/fonts/plex-sans" 200 ]; 201 }; 202 # Setting this environment variable allows to disable auto-updates 203 # https://zed.dev/docs/development/linux#notes-for-packaging-zed 204 ZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled."; 205 # Used by `zed --version` 206 + RELEASE_VERSION = finalAttrs.version; 207 LK_CUSTOM_WEBRTC = livekit-libwebrtc; 208 }; 209 210 + RUSTFLAGS = lib.optionalString withGLES "--cfg gles"; 211 212 preBuild = '' 213 bash script/generate-licenses ··· 275 install -Dm755 $release_target/zed $out/libexec/zed-editor 276 install -Dm755 $release_target/cli $out/bin/zeditor 277 278 + install -Dm644 $src/crates/zed/resources/app-icon@2x.png $out/share/icons/hicolor/1024x1024@2x/apps/zed.png 279 + install -Dm644 $src/crates/zed/resources/app-icon.png $out/share/icons/hicolor/512x512/apps/zed.png 280 281 # extracted from https://github.com/zed-industries/zed/blob/v0.141.2/script/bundle-linux (envsubst) 282 # and https://github.com/zed-industries/zed/blob/v0.141.2/script/install.sh (final desktop file name) ··· 315 { 316 remoteServerVersion = testers.testVersion { 317 package = zed-editor.remote_server; 318 + command = "zed-remote-server-stable-${finalAttrs.version} version"; 319 }; 320 } 321 // lib.optionalAttrs stdenv.hostPlatform.isLinux { ··· 326 meta = { 327 description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"; 328 homepage = "https://zed.dev"; 329 + changelog = "https://github.com/zed-industries/zed/releases/tag/v${finalAttrs.version}"; 330 license = lib.licenses.gpl3Only; 331 maintainers = with lib.maintainers; [ 332 GaetanLepage ··· 335 mainProgram = "zeditor"; 336 platforms = lib.platforms.linux ++ lib.platforms.darwin; 337 }; 338 + })