@@ -1,12 +1,19 @@
1−{ lib, stdenv, fetchurl, fetchpatch, ncurses, pcre, buildPackages }:
1+{ lib
2+, stdenv
3+, fetchurl
4+, fetchpatch
5+, autoreconfHook
6+, yodl
7+, perl
8+, groff
9+, util-linux
10+, texinfo
11+, ncurses
12+, pcre
13+, buildPackages }:
214
315let
416 version = "5.8";
5−
6− documentation = fetchurl {
7− url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.xz";
8− sha256 = "1i6wdzq6rfjx5yjrpzan1jf50hk2pfzy5qib9mb7cnnbjfar6klv";
9− };
1017in
1118
1219stdenv.mkDerivation {
@@ -30,6 +37,8 @@ stdenv.mkDerivation {
3037 })
3138 ];
3239
40+ nativeBuildInputs = [ autoreconfHook yodl perl groff util-linux texinfo ];
41+
3342 buildInputs = [ ncurses pcre ];
3443
3544 configureFlags = [
@@ -47,9 +56,7 @@ stdenv.mkDerivation {
4756
4857 # XXX: think/discuss about this, also with respect to nixos vs nix-on-X
4958 postInstall = ''
50− mkdir -p $out/share/info
51− tar xf ${documentation} -C $out/share
52− ln -s $out/share/zsh-*/Doc/zsh.info* $out/share/info/
59+ make install.info install.html
5360
5461 mkdir -p $out/etc/
5562 cat > $out/etc/zprofile <<EOF