nixpkgs/pkgs/by-name/co/codebook/package.nix
2025-11-09 00:28:53 +00:00

39 lines
981 B
Nix

{
lib,
fetchFromGitHub,
nix-update-script,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "codebook";
version = "0.3.17";
src = fetchFromGitHub {
owner = "blopker";
repo = "codebook";
tag = "v${finalAttrs.version}";
hash = "sha256-5LTblBxYuz/ErESSLPZ4EHlLID8XvhCDQkKxUyEWcmM=";
};
buildAndTestSubdir = "crates/codebook-lsp";
cargoHash = "sha256-jkYtXrNJTaxrAWpB7ZYsj/LA2tUWVReAnF2cb4TpwE0=";
# 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;
};
})