1 # Create a derivation that contains aspell and selected dictionaries.
2 # Composition is done using `pkgs.buildEnv`.
3 # Beware of that `ASPELL_CONF` used by this derivation is not always
4 # respected by libaspell (#28815) and in some cases, when used as
5 # dependency by another derivation, the passed dictionaries will be
6 # missing. However, invoking aspell directly should be fine.
17 # Dictionaries we want
18 dicts = f aspellDicts;
22 nativeBuildInputs = [ makeWrapper ];
23 paths = [ aspell ] ++ dicts;
25 # Construct wrappers in /bin
30 if [ -f "$prg" ]; then
31 makeWrapper "${aspell}/bin/$prg" "$out/bin/$prg" --set ASPELL_CONF "dict-dir $out/lib/aspell"