{ 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"; }; }