From 2ced86ef529cb822f78dab7e3b1fabfe5613adb3 Mon Sep 17 00:00:00 2001 From: Naora Date: Wed, 11 Jun 2025 09:45:37 +0200 Subject: [PATCH] dream-html: init at 3.10.1 --- .../ocaml-modules/dream-html/default.nix | 22 ++++++++++++++++ .../ocaml-modules/dream-html/pure.nix | 26 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 4 +++ 3 files changed, 52 insertions(+) create mode 100644 pkgs/development/ocaml-modules/dream-html/default.nix create mode 100644 pkgs/development/ocaml-modules/dream-html/pure.nix diff --git a/pkgs/development/ocaml-modules/dream-html/default.nix b/pkgs/development/ocaml-modules/dream-html/default.nix new file mode 100644 index 000000000000..30eb1d295781 --- /dev/null +++ b/pkgs/development/ocaml-modules/dream-html/default.nix @@ -0,0 +1,22 @@ +{ + lib, + buildDunePackage, + dream, + pure-html, +}: + +buildDunePackage { + pname = "dream-html"; + inherit (pure-html) src version; + + propagatedBuildInputs = [ + pure-html + dream + ]; + + meta = { + description = "Write HTML directly in your OCaml source files with editor support."; + license = lib.licenses.gpl3; + maintainers = [ lib.maintainers.naora ]; + }; +} diff --git a/pkgs/development/ocaml-modules/dream-html/pure.nix b/pkgs/development/ocaml-modules/dream-html/pure.nix new file mode 100644 index 000000000000..468890756a77 --- /dev/null +++ b/pkgs/development/ocaml-modules/dream-html/pure.nix @@ -0,0 +1,26 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, + uri, +}: + +buildDunePackage rec { + pname = "pure-html"; + version = "3.10.1"; + + src = fetchFromGitHub { + owner = "yawaramin"; + repo = "dream-html"; + tag = "v${version}"; + hash = "sha256-LywQG5AaQrrq8lW+aN1doB1MKPSMciZISOeo583Kr9k="; + }; + + propagatedBuildInputs = [ uri ]; + + meta = { + description = "Write HTML directly in your OCaml source files with editor support."; + license = lib.licenses.gpl3; + maintainers = [ lib.maintainers.naora ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index e7f5691bbee6..b2e46b6a62e6 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -414,6 +414,8 @@ let dream = callPackage ../development/ocaml-modules/dream { }; + dream-html = callPackage ../development/ocaml-modules/dream-html { }; + dream-httpaf = callPackage ../development/ocaml-modules/dream/httpaf.nix { }; dream-pure = callPackage ../development/ocaml-modules/dream/pure.nix { }; @@ -1819,6 +1821,8 @@ let inherit (pkgs) pulseaudio; }; + pure-html = callPackage ../development/ocaml-modules/dream-html/pure.nix { }; + pure-splitmix = callPackage ../development/ocaml-modules/pure-splitmix { }; pyml = callPackage ../development/ocaml-modules/pyml { };