1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 ocaml,
6 findlib,
7 ocamlbuild,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "ocaml-iso8601";
12 version = "0.2.5";
13
14 src = fetchFromGitHub {
15 owner = "sagotch";
16 repo = "ISO8601.ml";
17 rev = version;
18 sha256 = "sha256-QWjZ+2AjvXnnRVenbyCG/hSjfW53bHiftQUtWpK/7I8=";
19 };
20
21 nativeBuildInputs = [
22 ocaml
23 findlib
24 ocamlbuild
25 ];
26
27 strictDeps = true;
28
29 createFindlibDestdir = true;
30
31 meta = {
32 homepage = "https://ocaml-community.github.io/ISO8601.ml/";
33 description = "ISO 8601 and RFC 3999 date parsing for OCaml";
34 license = lib.licenses.mit;
35 platforms = ocaml.meta.platforms or [ ];
36 maintainers = with lib.maintainers; [ vbgl ];
37 };
38}