From c40c276804c2f03fd7cd4586d1eb7f2c741ad632 Mon Sep 17 00:00:00 2001 From: PhilVoel Date: Mon, 9 Sep 2024 06:45:50 +0200 Subject: [PATCH] ocamlPackages.terml: init at 0.0.1 --- .../ocaml-modules/terml/default.nix | 30 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/ocaml-modules/terml/default.nix diff --git a/pkgs/development/ocaml-modules/terml/default.nix b/pkgs/development/ocaml-modules/terml/default.nix new file mode 100644 index 000000000000..b70371e623fc --- /dev/null +++ b/pkgs/development/ocaml-modules/terml/default.nix @@ -0,0 +1,30 @@ +{ + buildDunePackage, + fetchFromGitHub, + lib, + uutf, +}: + +buildDunePackage rec { + pname = "terml"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "wllfaria"; + repo = "terml"; + rev = "${version}"; + hash = "sha256-2ifMfUaYYsCFOACgXgJ5IuoSEicHyIqumLpun2ZqcDc="; + }; + + propagatedBuildInputs = [ uutf ]; + + minimalOCamlVersion = "4.13"; + + meta = { + changelog = "https://github.com/wllfaria/terml/blob/${version}/CHANGES.md"; + description = "Terminal manipulation library in pure Ocaml"; + homepage = "https://github.com/wllfaria/terml"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.PhilVoel ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index c487541fa2e8..51163610fe95 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1784,6 +1784,8 @@ let terminal_size = callPackage ../development/ocaml-modules/terminal_size { }; + terml = callPackage ../development/ocaml-modules/terml { }; + tezos-base58 = callPackage ../development/ocaml-modules/tezos-base58 { }; tezt = callPackage ../development/ocaml-modules/tezt { };