2023-10-22 17:56:32 +00:00
|
|
|
{ symlinkJoin
|
|
|
|
, makeWrapper
|
|
|
|
}: flutter:
|
2023-02-17 13:43:17 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
self =
|
|
|
|
symlinkJoin {
|
|
|
|
name = "${flutter.name}-sdk-links";
|
2023-10-22 18:00:11 +00:00
|
|
|
paths = [ flutter flutter.cacheDir flutter.sdk ];
|
2023-02-17 13:43:17 +00:00
|
|
|
|
2023-10-22 17:56:32 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram "$out/bin/flutter" \
|
|
|
|
--set-default FLUTTER_ROOT "$out"
|
|
|
|
'';
|
|
|
|
|
2023-02-17 13:43:17 +00:00
|
|
|
passthru = flutter.passthru // {
|
|
|
|
# Update the SDK attribute.
|
|
|
|
# This allows any modified SDK files to be included
|
|
|
|
# in future invocations.
|
|
|
|
sdk = self;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = flutter.meta // {
|
|
|
|
longDescription = ''
|
|
|
|
${flutter.meta.longDescription}
|
|
|
|
Modified binaries are linked into the original SDK directory for use with tools that use the whole SDK.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
self
|