mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
gitea: switch to finalAttrs, add meta.changelog
This commit is contained in:
parent
f79a4fc2b3
commit
c4e0ce35fb
1 changed files with 6 additions and 5 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue