mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "codebook";
|
|
version = "0.3.43";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "blopker";
|
|
repo = "codebook";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-DR3x+DdkmdO6FW6lV5TtiLhtxmQTgWpNnLaX4yJ5kLE=";
|
|
};
|
|
|
|
buildAndTestSubdir = "crates/codebook-lsp";
|
|
cargoHash = "sha256-RG2slCQ2RUBt5+6DdLxAwBm0J9kzgtIthNP8jPfRqME=";
|
|
|
|
env = {
|
|
CARGO_PROFILE_RELEASE_LTO = "fat";
|
|
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
|
|
};
|
|
|
|
# Integration tests require internet access for dictionaries
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
|
|
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;
|
|
};
|
|
})
|