-
Notifications
You must be signed in to change notification settings - Fork 349
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
depext does not support nixOS #5124
Comments
I don’t know much about Nix but as I understand it, it wouldn’t be really useful as the path to C libraries would change all the time and opam/ocaml could store some of them. We could change the note to encourage nixos users to use https://github.com/timbertson/opam2nix instead. But maybe my assumptions are very wrong, as I said I don’t know Nix much. |
Thanks for taking the time to respond @kit-ty-kate. The paths to the libraries would change, but using To illustrate this with an example, ocaml-dns requires the Creating the file
And calling
So that This use of Using opam2nix or opam-nix is good for building, but sometimes not all than convenient for developing. Currently |
It's perhaps worth noting this is the OCaml equivalent of https://nixos.org/manual/nixpkgs/stable/#how-to-consume-python-modules-using-pip-in-a-virtual-environment-like-i-am-used-to-on-other-operating-systems. What I'm proposing is supporting this workflow from opam by automatically injecting systems dependancies into |
When installing packages with opam:
And system dependencies need to be manually installed.
It would be nice if opam could support nix by interacting with
nix-env
or creating a localdefault.nix/shell.nix
The text was updated successfully, but these errors were encountered: