1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-22 04:17:50 +00:00

Add IDX template configuration to Gemini samples (#2344)

Adds the configuration needed to open a subdirectory as a template in
IDX. Configuration is added to two samples that use Gemini -- Dynamic
theme and Gemini tasks
This commit is contained in:
Eric Windmill
2024-07-02 12:55:35 -04:00
committed by GitHub
parent af7b07307a
commit 0e3289740c
6 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# No user-configurable parameters
{ pkgs, ... }: {
packages = [
pkgs.flutter
];
# Shell script that produces the final environment
bootstrap = ''
export HOME=/home/user
export PATH="$PATH":"$HOME/flutter/bin"
cp -rf ${./.} "$out"
chmod -R +w "$out"
rm -rf "$out/.git" "$out/idx-template".{nix,json}
'';
}