{stdenv, fetchurl, perl}: stdenv.mkDerivation rec { name = "aspell-0.60.6.1"; src = fetchurl { url = "mirror://gnu/aspell/${name}.tar.gz"; sha256 = "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm"; }; patchPhase = '' patch interfaces/cc/aspell.h < ${./clang.patch} ''; buildInputs = [ perl ]; doCheck = true; preConfigure = '' configureFlagsArray=( --enable-pkglibdir=$out/lib/aspell --enable-pkgdatadir=$out/lib/aspell ); ''; postInstall = '' local prog="$out/bin/aspell" local hidden="$out/bin/.aspell-wrapped" mv "$prog" "$hidden" cat > "$prog" <