Commit 490a00c7 authored by FliegendeWurst's avatar FliegendeWurst
Browse files

authelia: fix cross build

parent 1744aeac
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) \