Skip to content
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

Add nix support #322

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add nix support #322

wants to merge 1 commit into from

Conversation

Nymphium
Copy link

This PR enables to develop in Nix environment and make free from opam command manipulations.
This Nix environment is reproducable and manages depexts of opam packages.

But currently dune build --root . in nix-shell fails with the following log:

File "bin/dune", line 2, characters 7-14:
2 |  (name satysfi)
           ^^^^^^^
Error: File unavailable:
/nix/store/iwmn1v600hn2yyx0111xfq4hkrh646zy-camlpdf-2.3.1-satysfi/lib/ocaml/4.13.1/site-lib/camlpdf/camlpdf.cmxa
File "tools/gencode/u.ml", line 34, characters 2-32:
34 |   Core_kernel.String.split_lines s
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (alert deprecated): module Core_kernel
[since 2021-05] Use [Core] -- [Core_kernel] was renamed as [Core]

The versions in nix-shell is the following:

tool version
ocaml 4.13.1
dune 3.0.3

These version is selected based on satysfi.opam.

@leque
Copy link
Contributor

leque commented Apr 5, 2022

That compile error would be fixed by #320.

@na4zagin3
Copy link
Contributor

na4zagin3 commented Apr 14, 2022

I'm just curious and this is not directly related to this issue itself. I'm just interested in Nix. Is it possible to (hopefully automatically) convert OPAM repo https://github.com/na4zagin3/satyrographos-repo to a Nix repo (or something like that) so that Nix users can automatically use packages there (including past versions of SATySFi)?

@Nymphium
Copy link
Author

Is it possible to (hopefully automatically) convert OPAM repo https://github.com/na4zagin3/satyrographos-repo to a Nix repo (or something like that) so that Nix users can automatically use packages there (including past versions of SATySFi)?

THIS PR forcuses to build and develop satysfi itself in Nix, so the answer is no. But it would be possible to build documentations with satysfi and each packages in Nix.

@Nymphium
Copy link
Author

I found out that camlpdf can't build on Nix immediately due to lack of which command.

@Nymphium Nymphium force-pushed the nix branch 2 times, most recently from 8fce49a to deb760d Compare May 3, 2022 12:28
@Nymphium Nymphium marked this pull request as ready for review May 3, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants