ocamlPackages.sodium: disable for OCaml ≥ 4.10

This commit is contained in:
Vincent Laporte 2020-05-22 11:10:07 +02:00 committed by Vincent Laporte
parent 03cd92fe70
commit 2f2ff72db3

View File

@ -1,5 +1,9 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, ctypes, libsodium }:
if stdenv.lib.versionAtLeast ocaml.version "4.10"
then throw "sodium is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-sodium";
version = "0.6.0";