diff --git a/pkgs/development/ocaml-modules/notty-community/default.nix b/pkgs/development/ocaml-modules/notty-community/default.nix new file mode 100644 index 000000000000..a26084b0c634 --- /dev/null +++ b/pkgs/development/ocaml-modules/notty-community/default.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchurl, + buildDunePackage, + cppo, + uutf, + lwt, +}: + +buildDunePackage (finalAttrs: { + pname = "notty-community"; + version = "0.2.4"; + + src = fetchurl { + url = "https://github.com/ocaml-community/notty-community/releases/download/v${finalAttrs.version}/notty-community-${finalAttrs.version}.tar.gz"; + hash = "sha256-FrA3wGX4lQZtrwXked1K/8LLvXel8xYIZ57gEmxX/d8="; + }; + + nativeBuildInputs = [ cppo ]; + + propagatedBuildInputs = [ + lwt + uutf + ]; + + doCheck = true; + + meta = { + description = "A declarative terminal library for OCaml"; + homepage = "https://github.com/ocaml-community/notty-community"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +}) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 4c129821501e..343f0b74899b 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1444,6 +1444,8 @@ let notty = callPackage ../development/ocaml-modules/notty { }; + notty-community = callPackage ../development/ocaml-modules/notty-community { }; + npy = callPackage ../development/ocaml-modules/npy { inherit (pkgs.python3Packages) numpy; };