Merge pull request #263939 from hacker1024/fix/dart-fod-wrapper
This commit is contained in:
commit
f67b20cad6
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, callPackage, fetchDartDeps, runCommand, writeText, dartHooks, makeWrapper, dart, cacert, nodejs, darwin, jq }:
|
||||
{ lib, stdenv, callPackage, fetchDartDeps, writeText, symlinkJoin, dartHooks, makeWrapper, dart, cacert, nodejs, darwin, jq }:
|
||||
|
||||
{ sdkSetupScript ? ""
|
||||
, pubGetScript ? "dart pub get"
|
||||
@ -36,11 +36,15 @@
|
||||
|
||||
let
|
||||
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"
|
||||
'';
|
||||
dart = symlinkJoin {
|
||||
name = "dart-fod";
|
||||
paths = [ dart ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram "$out/bin/dart" \
|
||||
--add-flags "--root-certs-file=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
'';
|
||||
};
|
||||
}) {
|
||||
buildDrvArgs = args;
|
||||
inherit sdkSetupScript pubGetScript vendorHash pubspecLockFile;
|
||||
|
Loading…
Reference in New Issue
Block a user