Loading pkgs/by-name/ze/zed-editor/package.nix +15 −5 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ envsubst, nix-update-script, cargo-about, testers, zed-editor, withGLES ? false, }: Loading Loading @@ -136,6 +138,8 @@ rustPlatform.buildRustPackage rec { # Setting this environment variable allows to disable auto-updates # https://zed.dev/docs/development/linux#notes-for-packaging-zed ZED_UPDATE_EXPLANATION = "zed has been installed using nix. Auto-updates have thus been disabled."; # Used by `zed --version` RELEASE_VERSION = version; }; RUSTFLAGS = if withGLES then "--cfg gles" else ""; Loading Loading @@ -187,12 +191,18 @@ rustPlatform.buildRustPackage rec { runHook postInstall ''; passthru.updateScript = nix-update-script { passthru = { updateScript = nix-update-script { extraArgs = [ "--version-regex" "v(.*)" ]; }; tests.version = testers.testVersion { inherit version; package = zed-editor; }; }; meta = { description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"; Loading Loading
pkgs/by-name/ze/zed-editor/package.nix +15 −5 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ envsubst, nix-update-script, cargo-about, testers, zed-editor, withGLES ? false, }: Loading Loading @@ -136,6 +138,8 @@ rustPlatform.buildRustPackage rec { # Setting this environment variable allows to disable auto-updates # https://zed.dev/docs/development/linux#notes-for-packaging-zed ZED_UPDATE_EXPLANATION = "zed has been installed using nix. Auto-updates have thus been disabled."; # Used by `zed --version` RELEASE_VERSION = version; }; RUSTFLAGS = if withGLES then "--cfg gles" else ""; Loading Loading @@ -187,12 +191,18 @@ rustPlatform.buildRustPackage rec { runHook postInstall ''; passthru.updateScript = nix-update-script { passthru = { updateScript = nix-update-script { extraArgs = [ "--version-regex" "v(.*)" ]; }; tests.version = testers.testVersion { inherit version; package = zed-editor; }; }; meta = { description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"; Loading