Merge pull request #72777 from cab404/android-studio/flutter-tls-support

android-studio: Fixed Flutter "TLS Error" on flutter pub get
This commit is contained in:
Matthew Bauer 2019-11-06 09:59:16 -05:00 committed by GitHub
commit eeba5c8e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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