summary refs log tree commit diff
path: root/pkgs/development/coq-modules
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2022-02-28 15:33:47 -0600
committerBen Siraphob <bensiraphob@gmail.com>2022-04-13 19:38:01 -0500
commita1244414d524a2ce9cc91ce53d53e0320677f1fd (patch)
treee1127dbe34f16f2c4ced7f2178a12ce1adf4df43 /pkgs/development/coq-modules
parent85662537465b671eb19616845166bfe22c19bb13 (diff)
downloadnixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar.gz
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar.bz2
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar.lz
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar.xz
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.tar.zst
nixpkgs-a1244414d524a2ce9cc91ce53d53e0320677f1fd.zip
coqPackages.smtcoq: init at itp22
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/smtcoq/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/smtcoq/default.nix b/pkgs/development/coq-modules/smtcoq/default.nix
new file mode 100644
index 00000000000..416b8d1bb58
--- /dev/null
+++ b/pkgs/development/coq-modules/smtcoq/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, mkCoqDerivation, coq, trakt, cvc4, veriT, version ? null }:
+with lib;
+
+mkCoqDerivation {
+  pname = "smtcoq";
+  owner = "smtcoq";
+
+  release."itp22".rev    = "1d60d37558d85a4bfd794220ec48849982bdc979";
+  release."itp22".sha256 = "sha256-CdPfgDfeJy8Q6ZlQeVCSR/x8ZlJ2kSEF6F5UnAespnQ=";
+
+  inherit version;
+  defaultVersion = with versions; switch [ coq.version mathcomp.version ] [
+    { cases = [ (isGe "8.13") ]; out = "itp22"; }
+  ] null;
+
+  propagatedBuildInputs = [ trakt cvc4 ] ++ lib.optionals (!stdenv.isDarwin) [ veriT ];
+  extraNativeBuildInputs = with coq.ocamlPackages; [ ocaml ocamlbuild ];
+  extraBuildInputs = with coq.ocamlPackages; [ findlib num zarith ];
+
+  meta = {
+    description = "Communication between Coq and SAT/SMT solvers ";
+    maintainers = with maintainers; [ siraben ];
+    license = licenses.cecill-b;
+    platforms = platforms.unix;
+  };
+}