diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-03-28 18:25:07 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-03-28 21:01:41 +0200 |
commit | 3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50 (patch) | |
tree | aca4c76d4e71a5d60ebe1cace176662651153421 /pkgs/development/ocaml-modules | |
parent | 700c4a7055242915c890aa79bd7f534b77a1d65b (diff) | |
download | nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar.gz nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar.bz2 nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar.lz nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar.xz nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.tar.zst nixpkgs-3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50.zip |
ocamlPackages.uutf: disable with OCaml ≤ 4.02
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/uutf/default.nix | 5 |
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 531f811cc43..c76eac45b35 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 ]; }; |