summary refs log tree commit diff
path: root/pkgs/build-support/dart/fetch-dart-deps/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/dart/fetch-dart-deps/default.nix')
-rw-r--r--pkgs/build-support/dart/fetch-dart-deps/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/build-support/dart/fetch-dart-deps/default.nix b/pkgs/build-support/dart/fetch-dart-deps/default.nix
index e523b60797e..d6920a35e20 100644
--- a/pkgs/build-support/dart/fetch-dart-deps/default.nix
+++ b/pkgs/build-support/dart/fetch-dart-deps/default.nix
@@ -79,7 +79,13 @@ let
 
       installPhase = ''
         _pub_get() {
-          ${pubGetScript}
+          (
+            # Dart does not respect SSL_CERT_FILE.
+            # https://github.com/dart-lang/sdk/issues/48506
+            export DART_VM_OPTIONS="--root-certs-file=$SSL_CERT_FILE"
+
+            ${pubGetScript}
+          )
         }
 
         # so we can use lock, diff yaml