mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
python3,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "zuban";
|
|
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zubanls";
|
|
repo = "zuban";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-mbBaOwJdYJhD7qUboHRSJfFo1t7ZLA+5/7moQWYjU3M=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/${python3.sitePackages}/zuban
|
|
cp -r third_party $out/${python3.sitePackages}/zuban/
|
|
'';
|
|
|
|
buildAndTestSubdir = "crates/zuban";
|
|
|
|
cargoHash = "sha256-mT8QG4pI96gTgFFZN49Yi7Ax90ulPM8pA0tdB/fdSuM=";
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
|
|
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; [
|
|
bew
|
|
mcjocobe
|
|
];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "zuban";
|
|
};
|
|
})
|