ocamlPackages.sodium: build on later OCaml versions

This commit is contained in:
Antonio Nuno Monteiro 2021-11-15 18:58:50 -08:00 committed by Vincent Laporte
parent f8f4575030
commit b464f0573e

View File

@ -1,9 +1,5 @@
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, ctypes, libsodium }:
if 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";