anchor.diff:    meta = {
       description = "A painless self-hosted Git service";
       homepage = "https://gogs.io";
  -    license = stdenv.lib.licenses.mit;
  -    maintainers = with stdenv.lib.maintainers; [ schneefux ];
  +    license = licenses.mit;
  +    maintainers = [ maintainers.schneefux ];
     };
   }
  
positive.code: , sqliteSupport ? true
  }:
  
  buildGoPackage rec {
    name = "gogs-${version}";
    version = "0.9.113";
  
    src = fetchFromGitHub {
      owner = "gogits";
      repo = "gogs";
      rev = "v${version}";
      sha256 = "1zk83c9jiazfw3221yi2sidp7917q3dxb2xb7wrjg4an18gj46j7";
    };
  
    patchPhase = ''
      substituteInPlace models/repo.go \
        --replace '#!/usr/bin/env' '#!${coreutils}/bin/env'
    '';
  
    buildInputs = [ makeWrapper ];
  
    buildFlags = stdenv.lib.optionalString sqliteSupport "-tags sqlite";
  
    outputs = [ "bin" "out" "data" ];
  
  
negative.code:     cp -R $src/{public,templates} $data
  
      wrapProgram $bin/bin/gogs \
        --prefix PATH : ${makeBinPath [ bash git gzip openssh ]} \
        --run 'export GOGS_WORK_DIR=''${GOGS_WORK_DIR:-$PWD}' \
        --run 'mkdir -p "$GOGS_WORK_DIR" && cd "$GOGS_WORK_DIR"' \
        --run "ln -fs $data/{public,templates} ."
  