It would be really nice to be able to use the output of this project in another nix derivation, so you could combine it with a backend and package it as a NixOS module.
I gave it a shot here:
https://github.com/niteria/purescript-halogen-realworld/tree/mkSpagoDerivation
Both nix build and nix develop work fine. Maybe it can be a good starting point for anyone wanting to do something similar.
The tricky part was the FFI - I had to use node2nix to get that working properly.
I’m not opening a PR because I basically replaced your flake.nix with the default one from https://github.com/jeslie0/mkSpagoDerivation/tree/main. Since you’re the author of https://github.com/thomashoneyman/purescript-overlay, you probably have a cleaner way to do this.
It would be really nice to be able to use the output of this project in another
nixderivation, so you could combine it with a backend and package it as a NixOS module.I gave it a shot here:
https://github.com/niteria/purescript-halogen-realworld/tree/mkSpagoDerivation
Both
nix buildandnix developwork fine. Maybe it can be a good starting point for anyone wanting to do something similar.The tricky part was the FFI - I had to use
node2nixto get that working properly.I’m not opening a PR because I basically replaced your
flake.nixwith the default one from https://github.com/jeslie0/mkSpagoDerivation/tree/main. Since you’re the author of https://github.com/thomashoneyman/purescript-overlay, you probably have a cleaner way to do this.