1 { typing-booster, symlinkJoin, hunspellDicts, lib, makeWrapper
2 , langs ? [ "de-de" "en-gb-ise" "en-us" "es-es" "fr-moderne" "it-it" "sv-se" "sv-fi" ]
7 hunspellDirs = lib.makeSearchPath "share/hunspell" (lib.attrVals langs hunspellDicts);
12 name = "${typing-booster.name}-with-hunspell";
13 paths = [ typing-booster ];
14 nativeBuildInputs = [ makeWrapper ];
17 for i in bin/emoji-picker libexec/ibus-{setup,engine}-typing-booster; do
18 wrapProgram "$out/$i" \
19 --prefix DICPATH : ${lib.escapeShellArg hunspellDirs}
22 sed -i -e "s,${typing-booster},$out," $out/share/ibus/component/typing-booster.xml
25 inherit (typing-booster) meta;