zuban: init at 0.0.21
This commit is contained in:
47
pkgs/by-name/zu/zuban/package.nix
Normal file
47
pkgs/by-name/zu/zuban/package.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
versionCheckHook,
|
||||||
|
nix-update-script,
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
|
pname = "zuban";
|
||||||
|
|
||||||
|
version = "0.0.21";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zubanls";
|
||||||
|
repo = "zuban";
|
||||||
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-llAJwqJmOtauA7pi7dYZhVH0yFBNN65q2y8ecc9hAJY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildAndTestSubdir = "crates/zuban";
|
||||||
|
|
||||||
|
cargoHash = "sha256-sZFc+kjerR7a6JzVb0zQXCfYuJVNnoYUihgLd3qrDLM=";
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Mypy-compatible Python Language Server built in Rust";
|
||||||
|
homepage = "https://zubanls.com";
|
||||||
|
# There's no changelog file yet, but they post updates on their blog.
|
||||||
|
changelog = "https://zubanls.com/blog/";
|
||||||
|
license = lib.licenses.agpl3Only;
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
mcjocobe
|
||||||
|
];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
mainProgram = "zuban";
|
||||||
|
};
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user