From e22019bc2f7aafe8df2e70d29e8a4dbe444ad084 Mon Sep 17 00:00:00 2001 From: hacker1024 Date: Mon, 23 Oct 2023 00:19:45 +1100 Subject: [PATCH] flutter: Allow overriding the FLUTTER_CACHE_DIR --- pkgs/development/compilers/flutter/wrapper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/flutter/wrapper.nix b/pkgs/development/compilers/flutter/wrapper.nix index f525bcc7ab31..fd08c324ba3a 100644 --- a/pkgs/development/compilers/flutter/wrapper.nix +++ b/pkgs/development/compilers/flutter/wrapper.nix @@ -120,7 +120,7 @@ let # We do not patch it since the script doesn't require engine artifacts(which are the only thing not added by the unwrapped derivation), so it shouldn't fail, and patching it will just be harder to maintain. immutableFlutter = writeShellScript "flutter_immutable" '' export PUB_CACHE=''${PUB_CACHE:-"$HOME/.pub-cache"} - export FLUTTER_CACHE_DIR=${cacheDir} + export FLUTTER_CACHE_DIR=''${FLUTTER_CACHE_DIR:-'${cacheDir}'} ${flutter}/bin/flutter "$@" '';