fasterthanlime, (edited )
@fasterthanlime@hachyderm.io avatar

any nix folks have an idea how to debug this? direnv with a use flake .envrc file fails on macOS, at line 3331 of "eval" with an unexpected semicolon

edit: full output https://gist.github.com/fasterthanlime/60b93196e0854e62e3561dfb72cc1970

edit 2: the same exact flake + direnv set up works on Linux right now.

edit 3: re-running '/opt/homebrew/bin/direnv allow' fixes PATH (absolute path needed since homebrew gets yeeted out of PATH)

edit 4: nix print-dev-env generates the mountain of bash I'm looking to debug right now!

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

lmao re-running direnv allow a second time works because...

the first time, it runs bash 3.2.57 (macOS built-in), the second time it runs bash 5.2.26 (latest nixpkgs version)

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

okay and ;& at the end of case arms is a bash 4.0 thing, alright.

chfkch,
@chfkch@ruhr.social avatar

@fasterthanlime
What is the rest of this output?

fasterthanlime,
@fasterthanlime@hachyderm.io avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • khanakhh
  • osvaldo12
  • Durango
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • cisconetworking
  • Youngstown
  • slotface
  • rosin
  • cubers
  • megavids
  • anitta
  • GTA5RPClips
  • tester
  • ethstaker
  • modclub
  • InstantRegret
  • everett
  • provamag3
  • Leos
  • normalnudes
  • tacticalgear
  • JUstTest
  • lostlight
  • All magazines