mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-02-27 04:23:15 +00:00
9 lines
No EOL
350 B
Bash
9 lines
No EOL
350 B
Bash
# When nix is available, use the flake for environment management
|
|
if command -v nix &> /dev/null; then
|
|
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 |