1{
2 lib,
3 fetchFromGitHub,
4 nix-update-script,
5 rustPlatform,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "codebook";
10 version = "0.3.5";
11
12 src = fetchFromGitHub {
13 owner = "blopker";
14 repo = "codebook";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-lQfk4dJ9WFraxMDWJVSBiTGumikfHYlMBe+0NHa/3nY=";
17 };
18
19 buildAndTestSubdir = "crates/codebook-lsp";
20 cargoHash = "sha256-MLd7V5Pp8yx4pFAXSjZf4KUGp964ombrnGKbrtXhC0I=";
21
22 # Integration tests require internet access for dictionaries
23 doCheck = false;
24
25 passthru.updateScript = nix-update-script { };
26
27 meta = {
28 description = "Unholy spellchecker for code";
29 homepage = "https://github.com/blopker/codebook";
30 changelog = "https://github.com/blopker/codebook/releases/tag/v${finalAttrs.version}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [
33 jpds
34 ];
35 mainProgram = "codebook-lsp";
36 platforms = with lib.platforms; unix ++ windows;
37 };
38})