about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/pratter/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/pratter/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/pratter/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/pratter/default.nix b/pkgs/development/ocaml-modules/pratter/default.nix
new file mode 100644
index 000000000000..a44e815092ca
--- /dev/null
+++ b/pkgs/development/ocaml-modules/pratter/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, fetchFromGitHub
+, buildDunePackage
+, camlp-streams
+, alcotest
+, qcheck
+, qcheck-alcotest
+}:
+
+buildDunePackage rec {
+  version = "2.0.0";
+  pname = "pratter";
+
+  minimalOCamlVersion = "4.08";
+
+  src = fetchFromGitHub {
+    owner = "gabrielhdt";
+    repo = "pratter";
+    rev = version;
+    hash = "sha256-QEq8Zt2pfsRT04Zd+ugGKcHdzkqYcDDUg/iAFMMDdEE=";
+  };
+
+  propagatedBuildInputs = [ camlp-streams ];
+
+  checkInputs = [ alcotest qcheck qcheck-alcotest ];
+  doCheck = true;
+
+  meta = with lib; {
+    description = "An extended Pratt parser";
+    homepage = "https://github.com/gabrielhdt/pratter";
+    license = licenses.bsd3;
+    changelog = "https://github.com/gabrielhdt/pratter/raw/${version}/CHANGELOG.md";
+    maintainers = with maintainers; [ bcdarwin ];
+  };
+}