Skip to content

Commit 48e3dee

Browse files
authored
codebook: init at 0.2.9 (NixOS#398406)
2 parents 91f3d15 + af53253 commit 48e3dee

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
nix-update-script,
5+
openssl,
6+
pkg-config,
7+
rustPlatform,
8+
}:
9+
10+
rustPlatform.buildRustPackage (finalAttrs: {
11+
pname = "codebook";
12+
version = "0.2.9";
13+
14+
src = fetchFromGitHub {
15+
owner = "blopker";
16+
repo = "codebook";
17+
tag = "v${finalAttrs.version}";
18+
hash = "sha256-iJ9S9DDoZVZxZ1o9dkor8PGM6Z+FljWZfetWFFMOIIo=";
19+
};
20+
21+
buildAndTestSubdir = "crates/codebook-lsp";
22+
cargoHash = "sha256-PmhfEftgto0FHOIfryN9JME9S+/CarAEZ6hV/vj37Eg=";
23+
24+
nativeBuildInputs = [
25+
pkg-config
26+
];
27+
28+
buildInputs = [
29+
openssl
30+
];
31+
32+
env.OPENSSL_NO_VENDOR = 1;
33+
34+
# Integration tests require internet access for dictionaries
35+
doCheck = false;
36+
37+
passthru.updateScript = nix-update-script { };
38+
39+
meta = {
40+
description = "Unholy spellchecker for code";
41+
homepage = "https://github.com/blopker/codebook";
42+
changelog = "https://github.com/blopker/codebook/releases/tag/v${finalAttrs.version}";
43+
license = lib.licenses.mit;
44+
maintainers = with lib.maintainers; [
45+
jpds
46+
];
47+
mainProgram = "codebook-lsp";
48+
platforms = with lib.platforms; unix ++ windows;
49+
};
50+
})

0 commit comments

Comments
 (0)