Merge branch 'master' into login-with-token

This commit is contained in:
Raffael Wolf 2026-02-08 17:58:24 +01:00 committed by GitHub
commit 809d9a3235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 4 deletions

5
.envrc
View file

@ -1,4 +1,9 @@
# When nix is available, use the flake for environment management # When nix is available, use the flake for environment management
if command -v nix &> /dev/null; then if command -v nix &> /dev/null; then
if type use_flake &> /dev/null; then
use flake use flake
else
echo "Falling back to nix develop (nix-direnv not available)"
eval "$(nix develop --print-env 2>/dev/null || echo 'echo Failed to load nix environment')"
fi
fi fi

4
.gitignore vendored
View file

@ -1,4 +1,5 @@
# Miscellaneous # Miscellaneous
*.bak
*.class *.class
*.log *.log
*.pyc *.pyc
@ -6,10 +7,9 @@
.DS_Store .DS_Store
.atom/ .atom/
.buildlog/ .buildlog/
.direnv .direnv/
.history .history
.svn/ .svn/
flake.nix.bak
coverage/* coverage/*

View file

@ -66,6 +66,10 @@
shift shift
exec flutter "$@" exec flutter "$@"
;; ;;
dart)
shift
exec dart "$@"
;;
*) *)
echo "fvm wrapper: command '$1' not implemented (using Nix-managed Flutter)" >&2 echo "fvm wrapper: command '$1' not implemented (using Nix-managed Flutter)" >&2
exit 1 exit 1

View file

@ -3,7 +3,7 @@
# This script adjusts flake.nix to use the flutter version # This script adjusts flake.nix to use the flutter version
# pinned in .fvmrc. It fetches the appropriate commit hash. # pinned in .fvmrc. It fetches the appropriate commit hash.
set -e set -euo pipefail
for cmd in jq curl sed nix; do for cmd in jq curl sed nix; do
command -v $cmd >/dev/null 2>&1 || { echo "Error: $cmd is not installed!"; exit 1; } command -v $cmd >/dev/null 2>&1 || { echo "Error: $cmd is not installed!"; exit 1; }