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:
commit
eeba5c8e0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user