From c7346270dd7946a32847d7e6f5fa8c14df4b44a5 Mon Sep 17 00:00:00 2001 From: redianthus Date: Sun, 8 Mar 2026 15:20:31 +0100 Subject: [PATCH] ocamlPackages.htmlit: init at 0.2.0 --- .../ocaml-modules/htmlit/default.nix | 24 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/ocaml-modules/htmlit/default.nix 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 { };