anchor.diff:    ];
   
     postPatch = ''
  -    patchShebangs .
       substituteInPlace modules/setting/setting.go --subst-var data
     '';
   
     nativeBuildInputs = [ makeWrapper ];
   
  -  buildInputs = optional pamSupport pam;
  +  buildInputs = lib.optional pamSupport pam;
   
     preBuild =
       let
  -      tags = optional pamSupport "pam"
  -        ++ optional sqliteSupport "sqlite sqlite_unlock_notify";
  -      tagsString = concatStringsSep " " tags;
  +      tags = lib.optional pamSupport "pam"
  +        ++ lib.optional sqliteSupport "sqlite sqlite_unlock_notify";
  +      tagsString = lib.concatStringsSep " " tags;
       in
       ''
         export buildFlagsArray=(
  
positive.code: , pamSupport ? true
  , nixosTests
  }:
  
  with lib;
  
  buildGoPackage rec {
    pname = "gitea";
  
negative.code:     cp -R ./go/src/${goPackagePath}/options/locale $out/locale
  
      wrapProgram $out/bin/gitea \
        --prefix PATH : ${lib.makeBinPath [ bash git gzip openssh ]}
    '';
  
    goPackagePath = "code.gitea.io/gitea";
  
    passthru.tests.gitea = nixosTests.gitea;
  
    meta = with lib; {
      description = "Git with a cup of tea";
      homepage = "https://gitea.io";
      license = licenses.mit;
  