.envrc: Use the nix flake when possible
@@ -22,7 +22,13 @@ export LOG_LEVEL=trace
# export TEST_CONNECTOR="postgres"
# export TEST_CONNECTOR_VERSION="10"
+# Set up env vars and build inputs from shell.nix / flake.nix automatically for
+# nix users. If you don't use nix, you can safely ignore this.
if command -v nix-shell &> /dev/null
then
+ if nix flake metadata > /dev/null; then
+ use flake
+ else
use nix
fi
+fi
