-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS support #2305
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@pantharshit00 also, I don't think NixOS is based on alpine ( but I am not sure ) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I did some research on nix and it is whole config based. You will need to add nodejs to your nix config in order to install it. See: https://nixos.org/nixos/manual/index.html#sec-package-management and maybe go through the manual otherwise, I will mail you a vmdk with a installation |
Looks like this worked in the NixOS VirtualBox |
So it will now output a warning message saying that pre-compiled binaries are not available for nixos, so it's easier to understand what's happening here. We do not have plan to provide pre-compiled binaries for NixOS for now. See these 2 issues for more info about how to compile the binaries: |
@Jolg42 I have managed to get the CLI working by compiling the rust binaries from source and copying them to the package folder in node_modules I have also packaged the cli as nix package for anyone else wanting to use Prisma in NixOS I think this issue could be closed now and maybe update the documentation about the support of NixOS |
Awesome! I will keep this open for now as it's not an official support and no decision was taken yet on this. Thanks for posting your nix package it will probably be useful for other people 👍 |
@Jolg42
I think because the cli now can recognize NixOS, the binary target became I think it could be solved by adding |
@husseinraoouf Indeed! Let me know if this solves it or not. |
Thank you it works now 🎉 |
Closing this was unblocked. Tracking providing pre-built binaries in #3026 |
Problem
Unable to use Prisma on NixOS, receiving "Error: Get config" due to binaryTargets, documentation provides no options for NixOS
Solution
Develop with Prisma successfully on NixOS
The text was updated successfully, but these errors were encountered: