Unverified Commit 8e5f550a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #304330 from Cephian/anki-ssl-fix

anki-bin: add explicit SSL cert path
parents 46a7ee4e adc7c544
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
{ fetchurl, stdenv, lib, buildFHSEnv, appimageTools, writeShellScript, anki, undmg, zstd, commandLineArgs ? [] }:
{ fetchurl, stdenv, lib, buildFHSEnv, appimageTools, writeShellScript, anki, undmg, zstd, cacert, commandLineArgs ? [] }:

let
  pname = "anki-bin";
@@ -57,6 +57,8 @@ let
    profile = ''
      # anki vendors QT and mixing QT versions usually causes crashes
      unset QT_PLUGIN_PATH
      # anki uses the system ssl cert, without it plugins do not download/update
      export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt"
    '';

    # Dependencies of anki