{ stdenv, fetchurl, ncurses, coreutils, pcre }: let version = "5.1.1"; documentation = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.gz"; sha256 = "0p99dr7kck0a6im1w9qiiz2ai78mgy53gbbn87bam9ya2885gf05"; }; in stdenv.mkDerivation { name = "zsh-${version}"; src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.gz"; sha256 = "11shllzhq53fg8ngy3bgbmpf09fn2czifg7hsb41nxi3410mpvcl"; }; buildInputs = [ ncurses coreutils pcre ]; preConfigure = '' configureFlags="--enable-maildir-support --enable-multibyte --enable-zprofile=$out/etc/zprofile --with-tcsetpgrp --enable-pcre" ''; # Some tests fail on hydra, see # http://hydra.nixos.org/build/25637689/nixlog/1 doCheck = false; # XXX: think/discuss about this, also with respect to nixos vs nix-on-X postInstall = '' mkdir -p $out/share/ tar xf ${documentation} -C $out/share mkdir -p $out/etc/ cat > $out/etc/zprofile <