anchor.diff:      sha256 = "0vj7p7f02m3w8wb74ilajcwznc4ai4h2ikkz9ildy0c00aqsi5w4";
     };
   
  -  nativeBuildInputs = [ pkgconfig ];
  +  enableParallelBuilding = true;
  +
  +  nativeBuildInputs = [ pkgconfig makeWrapper ];
     buildInputs = [
       lua5_2 file ncurses gmime pcre-cpp
       perl perlPackages.JSON perlPackages.NetIMAPClient
  
positive.code: { stdenv, fetchurl, pkgconfig, lua5_2, file, ncurses, gmime, pcre-cpp
  , perl, perlPackages }:
  
  let
    version = "3.1";
  in
  stdenv.mkDerivation {
    name = "lumail-${version}";
  
negative.code:     sed -e "s|^#\!\(.*/perl.*\)$|#\!\1$perlFlags|" -i perl.d/imap-proxy
    '';
  
    buildFlags = if debugBuild then "lumail2-debug" else "";
  
    installPhase = ''
      mkdir -p $out/bin || true
      install -m755 ${binaryName} $out/bin/
    ''
    + globalConfig
    + ''
      wrapProgram $out/bin/${binaryName} \
          --prefix LUA_PATH : "${luaPath}" \
          --prefix LUA_CPATH : "${luaCPath}"
    '';
  
    makeFlags = [
      "LVER=lua"
      "PREFIX=$(out)"
      "SYSCONFDIR=$(out)/etc"
      "LUMAIL_LIBS=$(out)/etc/lumail2"
    ];
  
    meta = with stdenv.lib; {
      description = "Console-based email client";
  