diff --git a/pkgs/development/ocaml-modules/duration/default.nix b/pkgs/development/ocaml-modules/duration/default.nix new file mode 100644 index 000000000000..7b3c1c65fc80 --- /dev/null +++ b/pkgs/development/ocaml-modules/duration/default.nix @@ -0,0 +1,22 @@ +{ lib, buildDunePackage, fetchurl, alcotest }: + +buildDunePackage rec { + pname = "duration"; + version = "0.1.3"; + + src = fetchurl { + url = "https://github.com/hannesm/duration/releases/download/${version}/duration-${version}.tbz"; + sha256 = "0m9r0ayhpl98g9vdxrbjdcllns274jilic5v8xj1x7dphw21p95h"; + }; + + doCheck = true; + checkInputs = lib.optional doCheck alcotest; + + meta = { + homepage = "https://github.com/hannesm/duration"; + description = "Conversions to various time units"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; + +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index fd863e428aff..a4b6889ac901 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -234,6 +234,8 @@ let dune-private-libs = callPackage ../development/ocaml-modules/dune-private-libs { }; + duration = callPackage ../development/ocaml-modules/duration { }; + earley = callPackage ../development/ocaml-modules/earley { }; earlybird = callPackage ../development/ocaml-modules/earlybird { };