{ stdenv, fetchurl, ncurses, pcre }: let version = "5.3"; documentation = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.gz"; sha256 = "0cvkdw7x6i4m2brc9aakw8d3bmp6baziv72amlq9jd65r421bq88"; }; in stdenv.mkDerivation { name = "zsh-${version}"; src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.gz"; sha256 = "0vcsgc1ymqhq0acklhlq5skgj27z597x2a7nx5g3j6q4jvx778hx"; }; buildInputs = [ ncurses pcre ]; preConfigure = '' configureFlags="--enable-maildir-support --enable-multibyte --enable-zprofile=$out/etc/zprofile --with-tcsetpgrp --enable-pcre" ''; # the zsh/zpty module is not available on hydra # so skip groups Y Z checkFlagsArray = '' (TESTNUM=A TESTNUM=B TESTNUM=C TESTNUM=D TESTNUM=E TESTNUM=V TESTNUM=W) ''; # XXX: think/discuss about this, also with respect to nixos vs nix-on-X postInstall = '' mkdir -p $out/share/info tar xf ${documentation} -C $out/share ln -s $out/share/zsh-*/Doc/zsh.info* $out/share/info/ mkdir -p $out/etc/ cat > $out/etc/zprofile <