authelia: fix cross build

This commit is contained in:
FliegendeWurst
2025-05-21 10:37:12 +02:00
parent 1744aeacbb
commit 490a00c7d9
+12 -9
View File
@@ -1,5 +1,6 @@
{
lib,
stdenv,
nodejs,
pnpm,
fetchFromGitHub,
@@ -59,15 +60,17 @@ buildGoModule rec {
# several tests with networking and several that want chromium
doCheck = false;
postInstall = ''
mkdir -p $out/etc/authelia
cp config.template.yml $out/etc/authelia
installShellCompletion --cmd authelia \
--bash <($out/bin/authelia completion bash) \
--fish <($out/bin/authelia completion fish) \
--zsh <($out/bin/authelia completion zsh)
'';
postInstall =
''
mkdir -p $out/etc/authelia
cp config.template.yml $out/etc/authelia
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd authelia \
--bash <($out/bin/authelia completion bash) \
--fish <($out/bin/authelia completion fish) \
--zsh <($out/bin/authelia completion zsh)
'';
doInstallCheck = true;
installCheckPhase = ''