File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments