diff options
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dart/build-dart-application/default.nix | 10 | ||||
-rw-r--r-- | pkgs/build-support/dart/fetch-dart-deps/default.nix | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/build-support/dart/build-dart-application/default.nix b/pkgs/build-support/dart/build-dart-application/default.nix index 7e9c3f842b80f..be1fd72776711 100644 --- a/pkgs/build-support/dart/build-dart-application/default.nix +++ b/pkgs/build-support/dart/build-dart-application/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchDartDeps, writeText, dartHooks, makeWrapper, dart, nodejs, darwin }: +{ lib, stdenv, fetchDartDeps, runCommand, writeText, dartHooks, makeWrapper, dart, cacert, nodejs, darwin }: { pubGetScript ? "dart pub get" @@ -30,7 +30,13 @@ }@args: let - dartDeps = fetchDartDeps { + dartDeps = (fetchDartDeps.override { + dart = runCommand "dart-fod" { nativeBuildInputs = [ makeWrapper ]; } '' + mkdir -p "$out/bin" + makeWrapper "${dart}/bin/dart" "$out/bin/dart" \ + --add-flags "--root-certs-file=${cacert}/etc/ssl/certs/ca-bundle.crt" + ''; + }) { buildDrvArgs = args; inherit pubGetScript vendorHash pubspecLockFile; }; diff --git a/pkgs/build-support/dart/fetch-dart-deps/default.nix b/pkgs/build-support/dart/fetch-dart-deps/default.nix index d6920a35e2046..e523b60797eb1 100644 --- a/pkgs/build-support/dart/fetch-dart-deps/default.nix +++ b/pkgs/build-support/dart/fetch-dart-deps/default.nix @@ -79,13 +79,7 @@ let installPhase = '' _pub_get() { - ( - # 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} - ) + ${pubGetScript} } # so we can use lock, diff yaml |