This is a little build / shell script I whipped up over the last few days. It was a huge pain to manually pass all the environment variables to luarocks, I don't know if there was a better way, but it seemed to not take exported variables. Anyway it's fully functional and well tested.
I opted for a shell environment rather than a default.nix because I had luarocks install locally. I couldn't get luarocks to work globally even with sudo so it needs to set a few lua path variables in order to have luajit find the libraries correctly. Nixos doesn't seem to support / have documentation on global luarocks. This is really a pain on nix without it because I had to find and setup every one of the dependencies manually so it's very nice to have if you're on nixos.
Awesome, thanks a lot for your work. I don't have nixos (although I was thinking of trying it out), so I can't test this out, but I'm going to trust that this works.
This is a little build / shell script I whipped up over the last few days. It was a huge pain to manually pass all the environment variables to luarocks, I don't know if there was a better way, but it seemed to not take exported variables. Anyway it's fully functional and well tested.
I opted for a shell environment rather than a default.nix because I had luarocks install locally. I couldn't get luarocks to work globally even with sudo so it needs to set a few lua path variables in order to have luajit find the libraries correctly. Nixos doesn't seem to support / have documentation on global luarocks. This is really a pain on nix without it because I had to find and setup every one of the dependencies manually so it's very nice to have if you're on nixos.