From 6bc5b75ccb06c5f46d888e8cb3d31025a6ed5269 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 11 Jan 2021 16:19:30 +0800 Subject: [PATCH] nixbld: fix gitea errors 500 https://github.com/go-gitea/gitea/issues/14274 --- nixbld-etc-nixos/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 191536e..de2fc50 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -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;