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

anki-bin: add explicit SSL cert path
This commit is contained in:
Aleksana 2024-04-18 13:21:40 +08:00 committed by GitHub
commit 8e5f550aa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ 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