ocamlPackages.lwd: init at 0.3 (#221929)

Added libraries
 - lwd
 - nottui
 - nottui-lwt
 - nottui-pretty
 - tyxml-lwd

Which are all part of the lwd sources. This fixes #136208.

<!-- ps-id: 5829ef03-e5f8-4ecc-9432-4777e95ca092 -->

Signed-off-by: Ali Caglayan <alizter@gmail.com>
This commit is contained in:
Ali Caglayan 2023-03-19 23:34:21 +01:00 committed by GitHub
parent 63829f0f13
commit 2484b9e3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ lib, fetchurl, buildDunePackage, seq }:
buildDunePackage rec {
pname = "lwd";
version = "0.3";
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchurl {
url =
"https://github.com/let-def/lwd/releases/download/v${version}/lwd-${version}.tbz";
sha256 = "sha256-H/vyW2tn2OBuWwcmPs8NcINXgFe93MSxRd8dzeoXARI=";
};
propagatedBuildInputs = [ seq ];
meta = with lib; {
description = "Lightweight reactive documents";
license = licenses.mit;
maintainers = [ maintainers.alizter ];
homepage = "https://github.com/let-def/lwd";
};
}

View File

@ -0,0 +1,19 @@
{ lib, fetchurl, buildDunePackage, lwd, lwt, nottui }:
buildDunePackage {
pname = "nottui-lwt";
inherit (lwd) version src;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ lwt nottui ];
meta = with lib; {
description = "Run Nottui UIs in Lwt";
license = licenses.mit;
maintainers = [ maintainers.alizter ];
homepage = "https://github.com/let-def/lwd";
};
}

View File

@ -0,0 +1,19 @@
{ lib, fetchurl, buildDunePackage, lwd, nottui }:
buildDunePackage {
pname = "nottui-pretty";
inherit (lwd) version src;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ nottui ];
meta = with lib; {
description = "A pretty-printer based on PPrint rendering UIs";
license = licenses.mit;
maintainers = [ maintainers.alizter ];
homepage = "https://github.com/let-def/lwd";
};
}

View File

@ -0,0 +1,19 @@
{ lib, fetchurl, buildDunePackage, lwd, notty }:
buildDunePackage {
pname = "nottui";
inherit (lwd) version src;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ lwd notty ];
meta = with lib; {
description = "UI toolkit for the terminal built on top of Notty and Lwd";
license = licenses.mit;
maintainers = [ maintainers.alizter ];
homepage = "https://github.com/let-def/lwd";
};
}

View File

@ -0,0 +1,20 @@
{ lib, fetchurl, buildDunePackage, js_of_ocaml, js_of_ocaml-ppx, lwd, tyxml }:
buildDunePackage {
pname = "tyxml-lwd";
inherit (lwd) version src;
minimalOCamlVersion = "4.08";
duneVersion = "3";
buildInputs = [ js_of_ocaml-ppx ];
propagatedBuildInputs = [ js_of_ocaml lwd tyxml ];
meta = with lib; {
description = "Make reactive webpages in Js_of_ocaml using Tyxml and Lwd";
license = licenses.mit;
maintainers = [ maintainers.alizter ];
homepage = "https://github.com/let-def/lwd";
};
}

View File

@ -787,6 +787,8 @@ let
inherit (pkgs) file;
};
lwd = callPackage ../development/ocaml-modules/lwd { };
lwt = callPackage ../development/ocaml-modules/lwt { };
lwt-canceler = callPackage ../development/ocaml-modules/lwt-canceler { };
@ -984,6 +986,12 @@ let
note = callPackage ../development/ocaml-modules/note { };
nottui = callPackage ../development/ocaml-modules/lwd/nottui.nix { };
nottui-lwt = callPackage ../development/ocaml-modules/lwd/nottui-lwt.nix { };
nottui-pretty = callPackage ../development/ocaml-modules/lwd/nottui-pretty.nix { };
notty = callPackage ../development/ocaml-modules/notty { };
npy = callPackage ../development/ocaml-modules/npy {
@ -1296,6 +1304,8 @@ let
tyxml = callPackage ../development/ocaml-modules/tyxml { };
tyxml-lwd = callPackage ../development/ocaml-modules/lwd/tyxml-lwd.nix { };
ulex = callPackage ../development/ocaml-modules/ulex { };
tls = callPackage ../development/ocaml-modules/tls { };