about summary refs log tree commit diff
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-06-26 17:00:37 +0200
committerGitHub <noreply@github.com>2018-06-26 17:00:37 +0200
commita627399a84f06251fc88030bde1b571f82121993 (patch)
treebe9d48898d26168417725defc5ccc5cec2529d76
parente4d9ce90611a90d7855dc234fb33e89217cd16ed (diff)
parentec81355c8d9f8ee5a31c1e458b8a141a769a71d1 (diff)
downloadnixlib-a627399a84f06251fc88030bde1b571f82121993.tar
nixlib-a627399a84f06251fc88030bde1b571f82121993.tar.gz
nixlib-a627399a84f06251fc88030bde1b571f82121993.tar.bz2
nixlib-a627399a84f06251fc88030bde1b571f82121993.tar.lz
nixlib-a627399a84f06251fc88030bde1b571f82121993.tar.xz
nixlib-a627399a84f06251fc88030bde1b571f82121993.tar.zst
nixlib-a627399a84f06251fc88030bde1b571f82121993.zip
Merge pull request #42567 from vbgl/ocaml-psmt2-frontend
ocamlPackages.psmt2-frontend: init at 0.1
-rw-r--r--pkgs/development/ocaml-modules/psmt2-frontend/default.nix35
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/psmt2-frontend/default.nix b/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
new file mode 100644
index 000000000000..c09cf5a77c1e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/psmt2-frontend/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, ocaml, findlib, menhir }:
+
+if !stdenv.lib.versionAtLeast ocaml.version "4.03"
+then throw "psmt2-frontend is not available for OCaml ${ocaml.version}"
+else
+
+stdenv.mkDerivation rec {
+  version = "0.1";
+  name = "ocaml${ocaml.version}-psmt2-frontend-${version}";
+
+  src = fetchFromGitHub {
+    owner = "Coquera";
+    repo = "psmt2-frontend";
+    rev = version;
+    sha256 = "0k7jlsbkdyg7hafmvynp0ik8xk7mfr00wz27vxn4ncnmp20yz4vn";
+  };
+
+  prefixKey = "-prefix ";
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ ocaml findlib menhir ];
+
+  createFindlibDestdir = true;
+
+  installFlags = "LIBDIR=$(OCAMLFIND_DESTDIR)";
+
+  meta = {
+    description = "A simple parser and type-checker for polomorphic extension of the SMT-LIB 2 language";
+    license = stdenv.lib.licenses.asl20;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    inherit (src.meta) homepage;
+    inherit (ocaml.meta) platforms;
+  };
+
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 3bb84e7e3a0c..6ca593f349fb 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -534,6 +534,8 @@ let
     piqi = callPackage ../development/ocaml-modules/piqi { };
     piqi-ocaml = callPackage ../development/ocaml-modules/piqi-ocaml { };
 
+    psmt2-frontend = callPackage ../development/ocaml-modules/psmt2-frontend { };
+
     psq = callPackage ../development/ocaml-modules/psq { };
 
     ptime = callPackage ../development/ocaml-modules/ptime { };