Unverified Commit 4d8f2d77 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

openscad-lsp: 1.2.5 -> 2.0.1 (#428026)

parents 0aafee9b 90eb7321
Loading
Loading
Loading
Loading
+17 −8
Original line number Diff line number Diff line
@@ -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=";

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  versionCheckProgramArg = "--version";

  # no tests exist
  doCheck = false;
  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 ];
  };
}
})