That might be no news for you, but NixOS build environment cuts network fetching besides of own fetchGit and etc. queries. However, it messes much with Node and Spago particularly.
I’ve made an Nginx-hosted Purescript-based SPA for some project of ours. Everything worked well till we decided to start integrating it in a NixOS configuration. But it failed, as Spago (and NPM, too, but that’s not the story) tries fetching one’s package sets.
--no-build flag bypasses that,
The problem is, we use
bundle-module to create one-file JS to pack it with Parcel.
I’m not sure whether Spago2Nix would generate enough cache to simply sending
And again, even with
--no-install it still fetches. Drawing a package set into a local file? Using Spago2Nix? (if you just assure me about the latter, I’ll just be glad)
UPD: BTW, assuring about
spago -v and copying some used commands would be nice, too. I’ll be performing some research on my own and share my insights about that.
The final goal is NixOS-compatible Purescript bundle build with NPM dependencies added.