diff --git a/pkgs/development/ocaml-modules/htmlit/default.nix b/pkgs/development/ocaml-modules/htmlit/default.nix
new file mode 100644
index 000000000000..92b11fb7ff6e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/htmlit/default.nix
@@ -0,0 +1,24 @@
+{
+ lib,
+ fetchurl,
+ buildTopkgPackage,
+}:
+
+buildTopkgPackage rec {
+ pname = "htmlit";
+ version = "0.2.0";
+
+ minimalOCamlVersion = "4.14.0";
+
+ src = fetchurl {
+ url = "https://erratique.ch/software/htmlit/releases/htmlit-${version}.tbz";
+ hash = "sha256-i+7gYle8G2y78GeoAnlNY5dpdONLhltuswusCbMmB/c=";
+ };
+
+ meta = {
+ description = "HTML generation combinators for OCaml";
+ homepage = "https://erratique.ch/software/htmlit";
+ license = lib.licenses.isc;
+ maintainers = with lib.maintainers; [ redianthus ];
+ };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 6c97be3b4d06..46c6dffbfee5 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -817,6 +817,8 @@ let
hpack = callPackage ../development/ocaml-modules/hpack { };
+ htmlit = callPackage ../development/ocaml-modules/htmlit { };
+
http = callPackage ../development/ocaml-modules/cohttp/http.nix { };
http-mirage-client = callPackage ../development/ocaml-modules/http-mirage-client { };