mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-03-22 04:41:24 +00:00
Merge branch 'master' into login-with-token
This commit is contained in:
commit
809d9a3235
4 changed files with 13 additions and 4 deletions
7
.envrc
7
.envrc
|
|
@ -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
|
||||||
use flake
|
if type use_flake &> /dev/null; then
|
||||||
|
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
4
.gitignore
vendored
|
|
@ -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/*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue