I am currently trying to get into purescript development as NixOS user. Spago does not work. I get the same error as described here, but the proposed solution does not work. I was able to follow the getting started guide with purs-nix but I don’t know how to use it with the purescript book. Purs-nix is also missing arm support.
Is there a different tool to follow the book? Next I wanted to try to use distrobox but I hope there would be a simpler solution like a way of using purs-nix with the book as well.
I also use a flake and github:thomashoneyman/purescript-overlay.
You can find a more minimal example of using it along with the lsp, the backend-optimizer and esbuild here:
Sure. You’d just follow my example and expand upon it similarly to how I defined spago-watch shell script in my flake then made sure to add it in the packages part. Anything you can do in the shell can be done there.
Easy as pie.
Where I am having trouble is actually a Haskell.nix backend with external dependencies but that’s a whole other nix world.