mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-16 09:28:35 +03:00
zed-editor: fix --version
This commit is contained in:
parent
b82be0d48c
commit
afce61251d
@ -28,6 +28,8 @@
|
|||||||
envsubst,
|
envsubst,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
cargo-about,
|
cargo-about,
|
||||||
|
testers,
|
||||||
|
zed-editor,
|
||||||
|
|
||||||
withGLES ? false,
|
withGLES ? false,
|
||||||
}:
|
}:
|
||||||
@ -136,6 +138,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# Setting this environment variable allows to disable auto-updates
|
# Setting this environment variable allows to disable auto-updates
|
||||||
# https://zed.dev/docs/development/linux#notes-for-packaging-zed
|
# 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.";
|
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 "";
|
RUSTFLAGS = if withGLES then "--cfg gles" else "";
|
||||||
@ -187,12 +191,18 @@ rustPlatform.buildRustPackage rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script {
|
passthru = {
|
||||||
|
updateScript = nix-update-script {
|
||||||
extraArgs = [
|
extraArgs = [
|
||||||
"--version-regex"
|
"--version-regex"
|
||||||
"v(.*)"
|
"v(.*)"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
tests.version = testers.testVersion {
|
||||||
|
inherit version;
|
||||||
|
package = zed-editor;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter";
|
description = "High-performance, multiplayer code editor from the creators of Atom and Tree-sitter";
|
||||||
|
Loading…
Reference in New Issue
Block a user