mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
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
15 lines
340 B
Nix
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}
|
|
'';
|
|
} |