anchor.diff:      done
     '';
   
  -  buildInputs = [curl openssl zlib expat gettext cpio makeWrapper libiconv perl]
  +  nativeBuildInputs = [ perl ];
  +  buildInputs = [curl openssl zlib expat gettext cpio makeWrapper libiconv]
  +    ++ stdenv.lib.optionals perlSupport [ perl ]
       ++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
            docbook_xsl docbook_xml_dtd_45 libxslt ]
       ++ stdenv.lib.optionals guiSupport [tcl tk]
  
positive.code: , darwin
  }:
  
  let
    version = "2.16.3";
    svn = subversionClient.override { perlBindings = true; };
  in
  
  stdenv.mkDerivation {
  
negative.code:       substituteInPlace $out/libexec/git-core/git-sh-i18n \
            --subst-var-by gettext ${gettext}
  
        # Also put git-http-backend into $PATH, so that we can use smart
        # HTTP(s) transports for pushing
        ln -s $out/libexec/git-core/git-http-backend $out/bin/git-http-backend
      '' + stdenv.lib.optionalString perlSupport ''
        # put in separate package for simpler maintenance
        mv $out/share/gitweb $gitweb/
  
        # wrap perl commands
        gitperllib=$out/lib/perl5/site_perl
  