forgejo{,-lts}: use writableTmpDirAsHomeHook

This commit is contained in:
emilylange
2025-10-17 02:11:34 +02:00
parent dede83c7b0
commit c3fb98e870
+2 -3
View File
@@ -26,6 +26,7 @@
stdenv,
fetchFromGitea,
buildNpmPackage,
writableTmpDirAsHomeHook,
}:
let
@@ -77,6 +78,7 @@ buildGoModule rec {
nativeCheckInputs = [
git
openssh
writableTmpDirAsHomeHook
];
patches = [
@@ -104,9 +106,6 @@ buildGoModule rec {
'';
preCheck = ''
# $HOME is required for ~/.ssh/authorized_keys and such
export HOME="$TMPDIR/home"
# expose and use the GO_TEST_PACKAGES var from the Makefile
# instead of manually copying over the entire list:
# https://codeberg.org/forgejo/forgejo/src/tag/v7.0.4/Makefile#L124