about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-01-05 12:10:44 +0100
committerAlan Pearce2025-01-05 12:16:17 +0100
commit12af22f93a8a5599ef8b3897341274a50e7da9f5 (patch)
tree8476869870d15da317233108aeee0b4e0670368d
parentb66c1ed87b556844421886ead373ffdd4ca25663 (diff)
downloadwebsite-12af22f93a8a5599ef8b3897341274a50e7da9f5.tar.lz
website-12af22f93a8a5599ef8b3897341274a50e7da9f5.tar.zst
website-12af22f93a8a5599ef8b3897341274a50e7da9f5.zip
Revert "disable lorri (broken on darwin)"
This reverts commit b66c1ed87b556844421886ead373ffdd4ca25663.
-rw-r--r--.envrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/.envrc b/.envrc
index a5b4b96..c0b3b3e 100644
--- a/.envrc
+++ b/.envrc
@@ -1,4 +1,12 @@
 layout go
-use flake
+if type -P lorri &>/dev/null; then
+  if test -n "$TMPDIR"; then
+    TMPDIR=$(readlink -f $TMPDIR)
+  fi
+  eval "$(lorri direnv --flake .)"
+else
+  echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
+  use nix
+fi
 
 dotenv