anchor.diff:      ''
         for i in $(cd $out/bin && ls); do
           wrapProgram $out/bin/$i \
  -          --prefix PYTHONPATH : "$(toPythonPath "$out ${hg-git}"):$(toPythonPath "$out ${dulwich}")" \
             $WRAP_TK
         done
   
  
positive.code:   version = "3.9.2";
    name = "mercurial-${version}";
    inherit (python2Packages) docutils hg-git dulwich python;
  in
  
  stdenv.mkDerivation {
    inherit name;
  
    src = fetchurl {
  
negative.code: 
    inherit python; # pass it so that the same version can be used in hg2git
  
    buildInputs = [ makeWrapper docutils unzip ];
  
    propagatedBuildInputs = [ hg-git dulwich ]
      ++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices cf-private ];
  
    makeFlags = "PREFIX=$(out)";
  
  