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.
18 # Dictionaries we want
19 dicts = f aspellDicts;
24 nativeBuildInputs = [ makeWrapper ];
25 paths = [ aspell ] ++ dicts;
27 # Construct wrappers in /bin
32 if [ -f "$prg" ]; then
33 makeWrapper "${aspell}/bin/$prg" "$out/bin/$prg" --set ASPELL_CONF "dict-dir $out/lib/aspell"