anchor.diff:    nativeBuildInputs = [ cmake pkgconfig m4 makeWrapper imagemagick ];
   
     buildInputs = [ wxGTK30 glib pcre ]
  -    ++ optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
  +    ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Cocoa;
   
  -  postPatch = optionalString stdenv.isLinux ''
  +  postPatch = stdenv.lib.optionalString stdenv.isLinux ''
       substituteInPlace far2l/bootstrap/trash.sh \
         --replace 'gvfs-trash'  '${gvfs}/bin/gvfs-trash'
  -  '' + optionalString stdenv.isDarwin ''
  +  '' + stdenv.lib.optionalString stdenv.isDarwin ''
       substituteInPlace far2l/CMakeLists.txt \
         --replace "-framework System" -lSystem
     '' + ''
  -    echo 'echo ${build}' > far2l/bootstrap/scripts/vbuild.sh
  +    echo 'echo ${version}' > far2l/bootstrap/scripts/vbuild.sh
       substituteInPlace far2l/bootstrap/open.sh              \
         --replace 'xdg-open'    '${xdg_utils}/bin/xdg-open'
       substituteInPlace far2l/vtcompletor.cpp                \
  
positive.code: { stdenv, fetchFromGitHub, fetchpatch, makeWrapper, cmake, pkgconfig, wxGTK30, glib, pcre, m4, bash,
    xdg_utils, gvfs, zip, unzip, gzip, bzip2, gnutar, p7zip, xz, imagemagick, darwin }:
  
  with stdenv.lib;
  stdenv.mkDerivation rec {
    build = "unstable-2018-07-19.git${builtins.substring 0 7 src.rev}";
    name = "far2l-2.1.${build}";
  
    src = fetchFromGitHub {
      owner = "elfmz";
  
negative.code:       --replace '"bzip2 '     '"${bzip2}/bin/bzip2 '       \
        --replace '"tar '       '"${gnutar}/bin/tar '
  
      cp ${newer-colorer-schemes}/hrc/hrc/base/nix.hrc     colorer/configs/base/hrc/base/
      cp ${newer-colorer-schemes}/hrc/hrc/base/cpp.hrc     colorer/configs/base/hrc/base/
      cp ${newer-colorer-schemes}/hrc/hrc/inet/jscript.hrc colorer/configs/base/hrc/base/
    '';
  
    installPhase = ''
  