3 Replies
Hi @ice. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To install Wasp on NixOS, you can follow a similar approach to the standard installation method, but with some NixOS-specific considerations. Here's what you need to know:
1. The standard installation command for Wasp is:
Quick Start - Installation (https://wasp-lang.dev/docs/quick-start#installation)
2. However, NixOS uses a different package management system, and the standard installation script might not work as expected.
3. There is a NixOS-specific approach mentioned in a GitHub issue comment:
"I kind of felt lazy and just nixified it in a minimal way (didn't build it from source). I just fetched the released tar from github and installed it like the install script in get-wasp (https://github.com/wasp-lang/get-wasp/blob/master/installer.sh), so it was a breeze, even with that bug."
GitHub Issue Comment (https://github.com/wasp-lang/wasp/issues/1161)
Based on this information, you could create a Nix expression that downloads the Wasp release tarball and installs it similarly to the standard installation script. However, I don't have enough specific information about creating such a Nix expression for Wasp.
For the most up-to-date and accurate information on installing Wasp on NixOS, I recommend:
1. Checking the official Wasp documentation for any NixOS-specific instructions.
2. Asking in the Wasp Discord community (https://discord.gg/rzdnErX) for NixOS-specific guidance.
3. Opening an issue on the Wasp GitHub repository (https://github.com/wasp-lang/wasp) to request official NixOS installation instructions.
Remember that Wasp requires Node.js (version >= 18) and npm, so you'll need to ensure these are available in your NixOS environment as well.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @ice, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@martinsos maybe one for you, I know you talked about this with someone recently
I am afraid I wouldn't konw th eanswer, I don't konw enough about Nix! I would hope you can indeed write a recipe to install the binary, or even compile from source, but I am not sure how one would go about that.