From 836f421fca0b8e112393a929852cd39d6073a723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 19 Apr 2026 17:51:41 +0200 Subject: [PATCH] gitea: 1.25.5 -> 1.26.0 Diff: https://github.com/go-gitea/gitea/compare/v1.25.5...v1.26.0 --- pkgs/by-name/gi/gitea/package.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/gi/gitea/package.nix b/pkgs/by-name/gi/gitea/package.nix index 83c82a18aa61..97bf32275439 100644 --- a/pkgs/by-name/gi/gitea/package.nix +++ b/pkgs/by-name/gi/gitea/package.nix @@ -27,7 +27,7 @@ let pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; fetcherVersion = 3; - hash = "sha256-Atb6m5ZD9NKjYezFnYLnQqnlr72g5dz7ROfOF9fsqto="; + hash = "sha256-dewYYPO2wmNyYiQadoEKWJ10cghm6Lv7UE1iVlyNiEY="; }; nativeBuildInputs = [ @@ -48,18 +48,18 @@ let in buildGoModule rec { pname = "gitea"; - version = "1.25.5"; + version = "1.26.0"; src = fetchFromGitHub { owner = "go-gitea"; repo = "gitea"; tag = "v${gitea.version}"; - hash = "sha256-EDj/n4dOZsdJx4zdP8GwUavZNK145Q8ENXmIL+81MY4="; + hash = "sha256-BzO4VHyOShU8QB8re/2MzP+4vNGebY874aB9NQD8KVA="; }; proxyVendor = true; - vendorHash = "sha256-o7OIVo0/gunGMIDd0r6c9KDtku6pWwzmgm1X9qVbx4w="; + vendorHash = "sha256-JSyjJIdRePbSnKL6GHdjx5Xbnsniq6KHOlEFsYvMmbw="; outputs = [ "out" @@ -71,10 +71,17 @@ buildGoModule rec { # go-modules derivation doesn't provide $data # so we need to wait until it is built, and then # at that time we can then apply the substituteInPlace - overrideModAttrs = _: { postPatch = null; }; + overrideModAttrs = _: { + postPatch = '' + substituteInPlace go.mod \ + --replace-fail "go 1.26.2" "go 1.26" + ''; + }; postPatch = '' substituteInPlace modules/setting/server.go --subst-var data + substituteInPlace go.mod \ + --replace-fail "go 1.26.2" "go 1.26" ''; subPackages = [ "." ];