nixbld: fix gitea errors 500

https://github.com/go-gitea/gitea/issues/14274
This commit is contained in:
Sebastien Bourdeauducq 2021-01-11 16:19:30 +08:00
parent 775e4573b7
commit 6bc5b75ccb
1 changed files with 8 additions and 0 deletions

View File

@ -421,6 +421,14 @@ in
matterbridge = super.matterbridge.overrideAttrs(oa: {
patches = oa.patches or [] ++ [ ./matterbridge-disable-github.patch ];
});
gitea = super.gitea.overrideAttrs(oa: {
preBuild = let tagsString = "pam sqlite sqlite_unlock_notify"; in ''
export buildFlagsArray=(
-tags="${tagsString}"
-ldflags='-X "main.Version=${oa.version}" -X "main.Tags=${tagsString}"'
)
'';
});
};
security.acme.acceptTerms = true;