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

authored by Aleksana and committed by GitHub 4d8f2d77 0aafee9b

+17 -8
+17 -8
pkgs/by-name/op/openscad-lsp/package.nix
··· 2 2 lib, 3 3 rustPlatform, 4 4 fetchFromGitHub, 5 + nix-update-script, 6 + 7 + # native check inputs 8 + versionCheckHook, 5 9 }: 6 10 7 - rustPlatform.buildRustPackage { 11 + rustPlatform.buildRustPackage (finalAttrs: { 8 12 pname = "openscad-lsp"; 9 - version = "1.2.5"; 13 + version = "2.0.1"; 10 14 11 15 src = fetchFromGitHub { 12 16 owner = "Leathong"; 13 17 repo = "openscad-LSP"; 14 - rev = "dc1283df080b981f8da620744b0fb53b22f2eb84"; 15 - hash = "sha256-IPTBWX0kKmusijg4xAvS1Ysi9WydFaUWx/BkZbMvgJk="; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-ACxsXGeVYmB13x/n+molCoScSOe6Zh2PYiaGGHnd4DQ="; 16 20 }; 17 21 18 - cargoHash = "sha256-qHwtLZUM9FrzDmg9prVtSf19KtEp8cZO/7XoXtZb5IQ="; 22 + cargoHash = "sha256-Q4NrRVSic7M1CFq24ffUv3d835PmaHus4Z0lLnUQ7Ts="; 19 23 20 - # no tests exist 21 - doCheck = false; 24 + doInstallCheck = true; 25 + nativeInstallCheckInputs = [ versionCheckHook ]; 26 + 27 + versionCheckProgramArg = "--version"; 28 + 29 + passthru.updateScript = nix-update-script { }; 22 30 23 31 meta = with lib; { 24 32 description = "LSP (Language Server Protocol) server for OpenSCAD"; 25 33 mainProgram = "openscad-lsp"; 26 34 homepage = "https://github.com/Leathong/openscad-LSP"; 35 + changelog = "https://github.com/Leathong/openscad-LSP/releases/tag/${finalAttrs.src.tag}"; 27 36 license = licenses.asl20; 28 37 maintainers = with maintainers; [ c-h-johnson ]; 29 38 }; 30 - } 39 + })