flutter: Update FLUTTER_ROOT in SDK symlink derivation

This commit is contained in:
hacker1024 2023-10-23 04:56:32 +11:00 committed by Maciej Krüger
parent 59493e57ed
commit de1d8091da
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -1,4 +1,6 @@
{ symlinkJoin }: flutter:
{ symlinkJoin
, makeWrapper
}: flutter:
let
self =
@ -6,6 +8,12 @@ let
name = "${flutter.name}-sdk-links";
paths = [ flutter flutter.sdk ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/flutter" \
--set-default FLUTTER_ROOT "$out"
'';
passthru = flutter.passthru // {
# Update the SDK attribute.
# This allows any modified SDK files to be included