mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
[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:
parent
e7ef62dae8
commit
d8606230a5
@ -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