Skip to content

Commit

Permalink
Merge pull request #964 from hannesm/minor
Browse files Browse the repository at this point in the history
avoid zarith-freestanding / zarith-xen build dependency
  • Loading branch information
hannesm committed Feb 2, 2019
2 parents b9e80db + e20b225 commit 112ebc7
Showing 1 changed file with 3 additions and 6 deletions.
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

0 comments on commit 112ebc7

Please sign in to comment.