mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
flutter: Include patches in flutter_tools snapshot
This commit is contained in:
parent
30170047b8
commit
00a11274d4
@ -2,6 +2,7 @@
|
||||
, dart
|
||||
, version
|
||||
, flutterSrc
|
||||
, patches ? [ ]
|
||||
, pubspecLockFile
|
||||
, vendorHash
|
||||
, depsListFile
|
||||
@ -14,6 +15,12 @@ buildDartApplication.override { inherit dart; } rec {
|
||||
|
||||
src = flutterSrc;
|
||||
sourceRoot = "source/packages/flutter_tools";
|
||||
postUnpack = ''chmod -R u+w "$NIX_BUILD_TOP/source"'';
|
||||
|
||||
inherit patches;
|
||||
# The given patches are made for the entire SDK source tree.
|
||||
prePatch = ''pushd "$NIX_BUILD_TOP/source"'';
|
||||
postPatch = ''popd'';
|
||||
|
||||
dartEntryPoints."flutter_tools.snapshot" = "bin/flutter_tools.dart";
|
||||
|
||||
|
@ -18,6 +18,7 @@ let
|
||||
tools = callPackage ./flutter-tools.nix {
|
||||
inherit dart version;
|
||||
flutterSrc = src;
|
||||
inherit patches;
|
||||
inherit pubspecLockFile vendorHash depsListFile;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user