about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/uutf
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/uutf')
-rw-r--r--pkgs/development/ocaml-modules/uutf/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/uutf/default.nix b/pkgs/development/ocaml-modules/uutf/default.nix
index 531f811cc431b..c76eac45b35dc 100644
--- a/pkgs/development/ocaml-modules/uutf/default.nix
+++ b/pkgs/development/ocaml-modules/uutf/default.nix
@@ -3,6 +3,9 @@ let
   pname = "uutf";
 in
 
+lib.throwIfNot (lib.versionAtLeast ocaml.version "4.03")
+  "${pname} is not available with OCaml ${ocaml.version}"
+
 stdenv.mkDerivation rec {
   name = "ocaml${ocaml.version}-${pname}-${version}";
   version = "1.0.3";
@@ -23,7 +26,7 @@ stdenv.mkDerivation rec {
   meta = with lib; {
     description = "Non-blocking streaming Unicode codec for OCaml";
     homepage = "https://erratique.ch/software/uutf";
-    platforms = ocaml.meta.platforms or [];
+    inherit (ocaml.meta) platforms;
     license = licenses.bsd3;
     maintainers = [ maintainers.vbgl ];
   };