From 2f2ff72db3485c49b9b0efadcd0b6a32eb2fc1ea Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 22 May 2020 11:10:07 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.sodium:=20disable=20for=20OCaml?= =?UTF-8?q?=20=E2=89=A5=204.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/sodium/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/ocaml-modules/sodium/default.nix b/pkgs/development/ocaml-modules/sodium/default.nix index ee9b90d4603..5d815456580 100644 --- a/pkgs/development/ocaml-modules/sodium/default.nix +++ b/pkgs/development/ocaml-modules/sodium/default.nix @@ -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";