mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-19 00:20:32 +03:00
30 lines
684 B
Nix
30 lines
684 B
Nix
![]() |
{ buildDartApplication
|
||
|
, dart
|
||
|
, version
|
||
|
, flutterSrc
|
||
|
, pubspecLockFile
|
||
|
, vendorHash
|
||
|
, depsListFile
|
||
|
}:
|
||
|
|
||
|
buildDartApplication.override { inherit dart; } rec {
|
||
|
pname = "flutter-tools";
|
||
|
inherit version;
|
||
|
dartOutputType = "kernel";
|
||
|
|
||
|
src = flutterSrc;
|
||
|
sourceRoot = "source/packages/flutter_tools";
|
||
|
|
||
|
dartEntryPoints."flutter_tools.snapshot" = "bin/flutter_tools.dart";
|
||
|
|
||
|
# The Dart wrapper launchers are useless for the Flutter tool - it is designed
|
||
|
# to be launched from a snapshot by the SDK.
|
||
|
postInstall = ''
|
||
|
pushd "$out"
|
||
|
rm ${builtins.concatStringsSep " " (builtins.attrNames dartEntryPoints)}
|
||
|
popd
|
||
|
'';
|
||
|
|
||
|
inherit pubspecLockFile vendorHash depsListFile;
|
||
|
}
|