flutter: Update FLUTTER_ROOT in SDK symlink derivation
This commit is contained in:
parent
59493e57ed
commit
de1d8091da
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
{ symlinkJoin }: flutter:
|
{ symlinkJoin
|
||||||
|
, makeWrapper
|
||||||
|
}: flutter:
|
||||||
|
|
||||||
let
|
let
|
||||||
self =
|
self =
|
||||||
|
@ -6,6 +8,12 @@ let
|
||||||
name = "${flutter.name}-sdk-links";
|
name = "${flutter.name}-sdk-links";
|
||||||
paths = [ flutter flutter.sdk ];
|
paths = [ flutter flutter.sdk ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram "$out/bin/flutter" \
|
||||||
|
--set-default FLUTTER_ROOT "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = flutter.passthru // {
|
passthru = flutter.passthru // {
|
||||||
# Update the SDK attribute.
|
# Update the SDK attribute.
|
||||||
# This allows any modified SDK files to be included
|
# This allows any modified SDK files to be included
|
||||||
|
|
Loading…
Reference in a new issue