Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
981 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromGitHub,
nix-update-script,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "codebook";
version = "0.3.11";
src = fetchFromGitHub {
owner = "blopker";
repo = "codebook";
tag = "v${finalAttrs.version}";
hash = "sha256-4jK5wmYnkQ0WDSSBmWL155fqFwG3SQENWvQuKdsfHF0=";
};
buildAndTestSubdir = "crates/codebook-lsp";
cargoHash = "sha256-FV7Ux+UuM57McQLqKYjgSvCbPCnM7ZOzX/jFEmtOz2o=";
# Integration tests require internet access for dictionaries
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "Unholy spellchecker for code";
homepage = "https://github.com/blopker/codebook";
changelog = "https://github.com/blopker/codebook/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
jpds
];
mainProgram = "codebook-lsp";
platforms = with lib.platforms; unix ++ windows;
};
})