openscad-lsp: 1.2.5 -> 2.0.1

This commit is contained in:
Curious
2025-07-27 04:08:01 +08:00
parent 20fd44831d
commit 90eb73217a
+17 -8
View File
@@ -2,29 +2,38 @@
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
# native check inputs
versionCheckHook,
}:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "openscad-lsp";
version = "1.2.5";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Leathong";
repo = "openscad-LSP";
rev = "dc1283df080b981f8da620744b0fb53b22f2eb84";
hash = "sha256-IPTBWX0kKmusijg4xAvS1Ysi9WydFaUWx/BkZbMvgJk=";
tag = "v${finalAttrs.version}";
hash = "sha256-ACxsXGeVYmB13x/n+molCoScSOe6Zh2PYiaGGHnd4DQ=";
};
cargoHash = "sha256-qHwtLZUM9FrzDmg9prVtSf19KtEp8cZO/7XoXtZb5IQ=";
cargoHash = "sha256-Q4NrRVSic7M1CFq24ffUv3d835PmaHus4Z0lLnUQ7Ts=";
# no tests exist
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "LSP (Language Server Protocol) server for OpenSCAD";
mainProgram = "openscad-lsp";
homepage = "https://github.com/Leathong/openscad-LSP";
changelog = "https://github.com/Leathong/openscad-LSP/releases/tag/${finalAttrs.src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ c-h-johnson ];
};
}
})