blob: 447292aa8738f820e8ba911f060ccecaff1fab48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
config,
pkgs,
lib,
...
}:
with builtins // lib;
let
pocketbooksync = pkgs.fetchzip {
url = "https://github.com/ckilb/pocketbooksync.koplugin/releases/download/v1.0.2/pocketbooksync.koplugin-v1.0.2.zip";
hash = "sha256-Up6tYirqiWLsTpUQhbxf9+rvC3SqBoVAck1m2qo2AB4=";
};
coverprogresspocketbook = pkgs.fetchzip {
url = "https://github.com/apastuszak/coverprogresspocketbook.koplugin/releases/download/v1.21/coverprogresspocketbook.koplugin.zip";
hash = "sha256-OuAwBCY2B6E9vPwqPWNPXllqyralAlQOSvCLRjfcwAI=";
};
wifi = pkgs.fetchFromGitHub {
owner = "Lomig";
repo = "koreader-pocketbook-wifi";
rev = "1278fe9";
hash = "sha256-foQ6tqrSWuRCd97cc1jr+Md7rVQH9pkfgGM3V2y0a5k=";
};
in
{
koreader.flavor = "pocketbook";
plugins = {
inherit pocketbooksync;
};
patchDirectories = [
"${wifi}/patches"
];
dictionaries = {
Wiktionary = fetchTarball {
url = "https://github.com/xxyzz/wiktionary_stardict/releases/download/20261020/en-en.tar.zst";
sha256 = "sha256-dA/7ARC1S9drNUmwHdvYflj1q/k48TQlu3HfEQbVQJc=";
};
GNU = pkgs.fetchzip {
url = "http://tovotu.de/data/stardict/gcide.zip";
hash = "sha256-/HKqAaM5KCj8jYoYLl+1a4qQb3xK4DUB9rl/Xe9Sb9Y=";
};
};
fonts = {
Alegreya = "${pkgs.alegreya}/share/fonts/truetype";
ComputerModern = "${pkgs.cm_unicode}/share/fonts/opentype";
};
}
|