-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
v-analyzer: init at 0.0.6-unstable-2025-07-08 #425973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nitpicks
src = fetchFromGitHub { | ||
owner = "vlang"; | ||
repo = "v-analyzer"; | ||
rev = finalAttrs.version; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = finalAttrs.version; | |
tag = finalAttrs.version; |
buildPhase = '' | ||
runHook preBuild | ||
|
||
export HOME=$(mktemp -d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export HOME=$(mktemp -d) |
instead, add writableTmpDirAsHomeHook
to nativeBuildInputs
meta = with lib; { | ||
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; | ||
homepage = "https://github.com/vlang/v-analyzer"; | ||
changelog = "https://github.com/vlang/v-analyzer/releases/tag/${finalAttrs.version}"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ cilki ]; | ||
platforms = platforms.unix; | ||
mainProgram = "v-analyzer"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meta = with lib; { | |
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; | |
homepage = "https://github.com/vlang/v-analyzer"; | |
changelog = "https://github.com/vlang/v-analyzer/releases/tag/${finalAttrs.version}"; | |
license = licenses.mit; | |
maintainers = with maintainers; [ cilki ]; | |
platforms = platforms.unix; | |
mainProgram = "v-analyzer"; | |
}; | |
meta = { | |
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; | |
homepage = "https://github.com/vlang/v-analyzer"; | |
changelog = "https://github.com/vlang/v-analyzer/releases/tag/${finalAttrs.version}"; | |
license = lib.licenses.mit; | |
maintainers = with lib.maintainers; [ cilki ]; | |
platforms = lib.platforms.unix; | |
mainProgram = "v-analyzer"; | |
}; |
Fixed those, PTAL. |
And it fails to build (see the x86_64-linux build in CI) |
@acid-bong Yeah, you're right. I built locally with a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now regarding the build: is there a way to build it in parallel?
meta = { | ||
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; | ||
homepage = "https://github.com/vlang/v-analyzer"; | ||
changelog = "https://github.com/vlang/v-analyzer/releases/tag/${finalAttrs.version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelog = "https://github.com/vlang/v-analyzer/releases/tag/${finalAttrs.version}"; | |
changelog = "https://github.com/vlang/v-analyzer/blob/${finalAttrs.src.rev}/CHANGELOG.md"; |
This way unstable commits won't lead to nonexistent tags
You mean have v compile in parallel? It seems the latest version does so by default in prod mode. |
''; | ||
|
||
meta = { | ||
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description = "The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; | |
description = "@vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more"; |
Not start with the definite or an indefinite article.
Add initial v-analyzer package for IDE support with V. Closes #294566.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.