[fix] android-studio: added certificate bundle to /etc/pki

This fixes Flutter SDK failing on flutter pub, due to missing certificates.
Flutter does not check /etc/ssl, and can only find them in /etc/pki.
This commit is contained in:
Vladimir Serov 2019-11-04 16:53:02 +03:00
parent e7ef62dae8
commit d8606230a5
No known key found for this signature in database
GPG Key ID: 6BA7C26C3FDF7BB3

View File

@ -3,6 +3,7 @@
{ alsaLib
, bash
, buildFHSUserEnv
, cacert
, coreutils
, dbus
, expat
@ -152,7 +153,16 @@ let
# environment is used as a work around for that.
fhsEnv = buildFHSUserEnv {
name = "${drvName}-fhs-env";
multiPkgs = pkgs: [ pkgs.ncurses5 ];
multiPkgs = pkgs: [
pkgs.ncurses5
# Flutter can only search for certs Fedora-way.
(runCommand "fedoracert" {}
''
mkdir -p $out/etc/pki/tls/
ln -s ${cacert}/etc/ssl/certs $out/etc/pki/tls/certs
'')
];
};
in runCommand
drvName