Commit 645dcf4f authored by FliegendeWurst's avatar FliegendeWurst Committed by github-actions[bot]
Browse files

authelia: fix cross build

(cherry picked from commit 490a00c7)
parent 46e02041
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  nodejs,
  pnpm,
  fetchFromGitHub,
@@ -59,10 +60,12 @@ buildGoModule rec {
  # several tests with networking and several that want chromium
  doCheck = false;

  postInstall = ''
  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) \