Skip to content

Commit

Permalink
Updating dream-html and adding depencies for pure-html (#1920)
Browse files Browse the repository at this point in the history
* chore(dream_html): updating dream_html

* fix(dependencies): add dependencies for pure-html

* fix(review): removing uri and stringext

* fix fmt

---------

Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
  • Loading branch information
Naora and anmonteiro authored Feb 16, 2025
1 parent 59f5265 commit 9e2797c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
2 changes: 2 additions & 0 deletions ocaml/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2219,6 +2219,8 @@ with oself;
]);
};

pure-html = callPackage ./dream-html/pure.nix { };

qrc =
let
version = "0.2.0";
Expand Down
13 changes: 3 additions & 10 deletions ocaml/dream-html/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{ lib, buildDunePackage, fetchFromGitHub, dream }:
{ lib, buildDunePackage, dream, pure-html }:

buildDunePackage {
pname = "dream-html";
version = "1.1.0";
inherit (pure-html) src version;

src = fetchFromGitHub {
owner = "yawaramin";
repo = "dream-html";
rev = "v1.1.0";
sha256 = "sha256-OfdWal7fYqiT+4vfZZi5x6ItBVCP4rPHb2aO5TO6L88=";
};

propagatedBuildInputs = [ dream ];
propagatedBuildInputs = [ pure-html dream ];

meta = {
description =
Expand Down
21 changes: 21 additions & 0 deletions ocaml/dream-html/pure.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ lib, buildDunePackage, fetchFromGitHub, uri }:

buildDunePackage {
pname = "pure-html";
version = "3.10.0";

src = fetchFromGitHub {
owner = "yawaramin";
repo = "dream-html";
rev = "v3.10.0";
sha256 = "sha256-OlO3g+cEP27GjxJZT0jCTRkICLFRLS0jWkitqXeAVX8=";
};

propagatedBuildInputs = [ uri ];

meta = {
description =
"Write HTML directly in your OCaml source files with editor support.";
license = lib.licenses.gpl3;
};
}

0 comments on commit 9e2797c

Please sign in to comment.