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

avoid zarith-freestanding / zarith-xen build dependency #964

Merged
merged 2 commits into from Feb 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions lib/mirage_impl_random.ml
Expand Up @@ -30,14 +30,11 @@ let nocrypto = impl @@ object
method module_name = "Nocrypto_entropy"
method! packages =
Mirage_key.match_ Mirage_key.(value target) @@ function
| `Xen | `Qubes ->
[ package ~min:"0.5.4" ~max:"0.6.0" ~sublibs:["mirage"] "nocrypto";
package ~max:"2.0" ~ocamlfind:[] "zarith-xen" ]
| `Virtio | `Hvt | `Muen | `Genode ->
[ package ~min:"0.5.4" ~max:"0.6.0" ~sublibs:["mirage"] "nocrypto";
package ~max:"2.0" ~ocamlfind:[] "zarith-freestanding" ]
| `Unix | `MacOSX ->
[ package ~min:"0.5.4" ~max:"0.6.0" ~sublibs:["lwt"] "nocrypto" ]
| _ ->
[ package ~min:"0.5.4" ~max:"0.6.0" ~sublibs:["mirage"] "nocrypto" ;
package ~min:"0.4.1" ~max:"0.5.0" "mirage-entropy" ]

method! build _ = Rresult.R.ok (enable_entropy ())
method! connect i _ _ =
Expand Down