From 490a00c7d98adc51c4c41dd5bbe5a3f4845ed6bc Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Mon, 19 May 2025 18:45:01 +0200 Subject: [PATCH] authelia: fix cross build --- pkgs/servers/authelia/default.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/authelia/default.nix b/pkgs/servers/authelia/default.nix index beea275ace20..1d247e4899cb 100644 --- a/pkgs/servers/authelia/default.nix +++ b/pkgs/servers/authelia/default.nix @@ -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 = ''