{ stdenv, fetchurl, ncurses, coreutils, pcre }: let version = "5.0.6"; documentation = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.bz2"; sha256 = "1mngi85q56szzlrdzv60vg7wl03lih8vlnl800gwr0i6d1laawxj"; }; in stdenv.mkDerivation { name = "zsh-${version}"; src = fetchurl { url = "mirror://sourceforge/zsh/zsh-${version}.tar.bz2"; sha256 = "0ic86y35v82d87ixjzdb6zrnzf002b7gn573jnva6cqm2jdm1jl4"; }; buildInputs = [ ncurses coreutils pcre ]; preConfigure = '' configureFlags="--enable-maildir-support --enable-multibyte --enable-zprofile=$out/etc/zprofile --with-tcsetpgrp --enable-pcre" ''; # 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 <