1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00
Files
samples/gemini_tasks/idx-template.nix
Eric Windmill 0e3289740c 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
2024-07-02 12:55:35 -04:00

15 lines
340 B
Nix

# 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}
'';
}