diff --git a/pkgs/development/libraries/aspell/default.nix b/pkgs/development/libraries/aspell/default.nix index 5af340bef07..e69bbe0d2f2 100644 --- a/pkgs/development/libraries/aspell/default.nix +++ b/pkgs/development/libraries/aspell/default.nix @@ -23,12 +23,27 @@ stdenv.mkDerivation rec { ); ''; - # Note: Users should define the `ASPELL_CONF' environment variable to - # `data-dir $HOME/.nix-profile/lib/aspell/' so that they can access - # dictionaries installed in their profile. - # - # We can't use `$out/etc/aspell.conf' for that purpose since Aspell - # doesn't expand environment variables such as `$HOME'. + postInstall = '' + local prog="$out/bin/aspell" + local hidden="$out/bin/.aspell-wrapped" + mv "$prog" "$hidden" + cat > "$prog" <