From 4fe8af2162f6e0068ba8c87364a44e98b9f5ab84 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 8 Sep 2022 20:25:35 -0400 Subject: [PATCH] ocamlPackages.timed: init at 1.1 --- .../ocaml-modules/timed/default.nix | 28 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/timed/default.nix diff --git a/pkgs/development/ocaml-modules/timed/default.nix b/pkgs/development/ocaml-modules/timed/default.nix new file mode 100644 index 000000000000..988cb3f5487f --- /dev/null +++ b/pkgs/development/ocaml-modules/timed/default.nix @@ -0,0 +1,28 @@ +{ lib +, fetchFromGitHub +, ocaml +, buildDunePackage +}: + +buildDunePackage rec { + version = "1.1"; + pname = "timed"; + + minimalOCamlVersion = "4.08"; + + src = fetchFromGitHub { + owner = "rlepigre"; + repo = "ocaml-${pname}"; + rev = version; + sha256 = "sha256-wUoI9j/j0IGYW2NfJHmyR2XEYfYejyoYLWnKsuWdFas="; + }; + + doCheck = true; + + meta = with lib; { + description = "Timed references for imperative state"; + homepage = "https://github.com/rlepigre/ocaml-timed"; + license = licenses.mit; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 547050b4f39b..8946390ea8aa 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1227,6 +1227,8 @@ let tcpip = callPackage ../development/ocaml-modules/tcpip { }; + timed = callPackage ../development/ocaml-modules/timed { }; + tiny_httpd = callPackage ../development/ocaml-modules/tiny_httpd { }; tsort = callPackage ../development/ocaml-modules/tsort { };