From 4f742d45353d8aebad90095c4d3cba39e7721a9c Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 8 Sep 2022 20:28:34 -0400 Subject: [PATCH] ocamlPackages.bindlib: init at 6.0.0 --- .../ocaml-modules/bindlib/default.nix | 31 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/ocaml-modules/bindlib/default.nix diff --git a/pkgs/development/ocaml-modules/bindlib/default.nix b/pkgs/development/ocaml-modules/bindlib/default.nix new file mode 100644 index 00000000000..c0d8dd54a37 --- /dev/null +++ b/pkgs/development/ocaml-modules/bindlib/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchFromGitHub +, buildDunePackage +, earley +, timed +}: + +buildDunePackage rec { + pname = "bindlib"; + version = "6.0.0"; + + minimalOCamlVersion = "4.07"; + + src = fetchFromGitHub { + owner = "rlepigre"; + repo = "ocaml-${pname}"; + rev = version; + hash = "sha256-058yMbz9ExvgNG/kY9tPk70XSeVRSSKVg4n4F4fmPu4="; + }; + + checkInputs = [ earley timed ]; + doCheck = true; + + meta = with lib; { + homepage = "https://rlepigre.github.io/ocaml-bindlib"; + description = "Efficient binder representation in Ocaml"; + license = licenses.gpl3; + changelog = "https://github.com/rlepigre/ocaml-bindlib/raw/${version}/CHANGELOG.md"; + maintainers = with maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 8946390ea8a..3faf97e962d 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -78,6 +78,8 @@ let bigstring = callPackage ../development/ocaml-modules/bigstring { }; + bindlib = callPackage ../development/ocaml-modules/bindlib { }; + biocaml = callPackage ../development/ocaml-modules/biocaml { }; bistro = callPackage ../development/ocaml-modules/bistro { };