gitea: switch to finalAttrs, add meta.changelog

This commit is contained in:
Sandro Jäckel 2026-06-21 19:14:46 +02:00
commit c4e0ce35fb
No known key found for this signature in database
GPG key ID: 236B6291555E8401

View file

@ -49,14 +49,14 @@ let
'';
});
in
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "gitea";
version = "1.26.4";
src = fetchFromGitHub {
owner = "go-gitea";
repo = "gitea";
tag = "v${gitea.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-xfLhiQMygYKgSMrvmH2V/LIMeaA4ovOeUDT4RUwhvgo=";
};
@ -99,8 +99,8 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X 'main.Tags=${lib.concatStringsSep " " tags}'"
"-X main.Version=${finalAttrs.version}"
"-X 'main.Tags=${lib.concatStringsSep " " finalAttrs.tags}'"
];
postInstall = ''
@ -133,6 +133,7 @@ buildGoModule rec {
meta = {
description = "Git with a cup of tea";
homepage = "https://about.gitea.com";
changelog = "https://github.com/go-gitea/gitea/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
techknowlogick
@ -140,4 +141,4 @@ buildGoModule rec {
];
mainProgram = "gitea";
};
}
})