Unverified Commit 2484b9e3 authored by Ali Caglayan's avatar Ali Caglayan Committed by GitHub
Browse files

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: default avatarAli Caglayan <alizter@gmail.com>
parent 63829f0f
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
{ 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";
  };
}
+19 −0
Original line number Diff line number Diff line
{ 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";
  };
}
+19 −0
Original line number Diff line number Diff line
{ 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";
  };
}
+19 −0
Original line number Diff line number Diff line
{ 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";
  };
}
+20 −0
Original line number Diff line number Diff line
{ 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";
  };
}
Loading