diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix b/nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix index 6701c8650513..c76eac45b35d 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/uutf/default.nix @@ -1,16 +1,18 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, cmdliner , topkg, uchar }: let pname = "uutf"; - webpage = "https://erratique.ch/software/${pname}"; 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.2"; + version = "1.0.3"; src = fetchurl { - url = "${webpage}/releases/${pname}-${version}.tbz"; - sha256 = "1nx1rly3qj23jzn9yk3x6fwqimcxjd84kv5859vvhdg56psq26p6"; + url = "https://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; + sha256 = "sha256-h3KlYT0ecCmM4U3zMkGjaF8h5O9r20zwP+mF+x7KBWg="; }; nativeBuildInputs = [ ocaml ocamlbuild findlib topkg ]; @@ -23,8 +25,8 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Non-blocking streaming Unicode codec for OCaml"; - homepage = webpage; - platforms = ocaml.meta.platforms or []; + homepage = "https://erratique.ch/software/uutf"; + inherit (ocaml.meta) platforms; license = licenses.bsd3; maintainers = [ maintainers.vbgl ]; }; |