Skip to content

Commit

Permalink
Merge pull request #208290 from Ma27/bump-gitea
Browse files Browse the repository at this point in the history
gitea: 1.17.4 -> 1.18.0
  • Loading branch information
Ma27 authored Jan 2, 2023
2 parents 776bc0a + b5c6d4d commit ba633b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/services/misc/gitea.nix
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ in
ROOT_URL = cfg.rootUrl;
}
(mkIf cfg.enableUnixSocket {
PROTOCOL = "unix";
PROTOCOL = "http+unix";
HTTP_ADDR = "/run/gitea/gitea.sock";
})
(mkIf (!cfg.enableUnixSocket) {
Expand All @@ -404,7 +404,6 @@ in
})
(mkIf cfg.lfs.enable {
LFS_START_SERVER = true;
LFS_CONTENT_PATH = cfg.lfs.contentDir;
})

];
Expand All @@ -426,6 +425,10 @@ in
oauth2 = {
JWT_SECRET = "#oauth2jwtsecret#";
};

lfs = mkIf (cfg.lfs.enable) {
PATH = cfg.lfs.contentDir;
};
};

services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
Expand Down
6 changes: 4 additions & 2 deletions pkgs/applications/version-management/gitea/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildGoPackage
, fetchurl
, makeWrapper
Expand All @@ -14,12 +15,12 @@

buildGoPackage rec {
pname = "gitea";
version = "1.17.4";
version = "1.18.0";

# not fetching directly from the git repo, because that lacks several vendor files for the web UI
src = fetchurl {
url = "https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz";
sha256 = "sha256-koZEr89QhxCf2Dd/7SWiS/ZZoRIBfyu0mbxKknjXPK4=";
sha256 = "sha256-X0KvIB2JvSoh2MR9FcwKObQzod2GxhKeGqIKU5CKTEM=";
};

patches = [
Expand Down Expand Up @@ -68,5 +69,6 @@ buildGoPackage rec {
homepage = "https://gitea.io";
license = licenses.mit;
maintainers = with maintainers; [ disassembler kolaente ma27 techknowlogick ];
broken = stdenv.isDarwin;
};
}

0 comments on commit ba633b0

Please # to comment.