flutter: Add git and which to PATH

This commit is contained in:
hacker1024 2023-04-13 21:55:50 +10:00
parent f3aac6e61e
commit 4196ddbeb5

View File

@ -6,6 +6,8 @@
, makeWrapper
, runCommandLocal
, writeShellScript
, git
, which
, pkg-config
, atk
, cairo
@ -31,6 +33,9 @@ let
${flutter}/bin/flutter --no-version-check "$@"
'';
# Tools that the Flutter tool depends on.
tools = [ git which ];
# Libraries that Flutter apps depend on at runtime.
appRuntimeDeps = lib.optionals supportsLinuxDesktop [
atk
@ -84,7 +89,7 @@ in
mkdir -p $out/bin
makeWrapper '${immutableFlutter}' $out/bin/flutter \
--set-default ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \
--prefix PATH : '${lib.makeBinPath buildTools}' \
--prefix PATH : '${lib.makeBinPath (tools ++ buildTools)}' \
--prefix PKG_CONFIG_PATH : '${builtins.concatStringsSep ":" pkgConfigDirectories}' \
--prefix LIBRARY_PATH : '${lib.makeLibraryPath appStaticBuildDeps}' \
--prefix CXXFLAGS "''\t" '${builtins.concatStringsSep " " cppFlags}' \