summary refs log tree commit diff
path: root/pkgs/development/coq-modules
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-10-31 16:21:41 -0700
committerJohn Wiegley <johnw@newartisans.com>2016-10-31 16:22:04 -0700
commita12f3d232d5bc99913537e44c25ee16afba628a0 (patch)
tree9fd9d021597601e3bc2f290a126c44757fcf6619 /pkgs/development/coq-modules
parentd0bb7f0c535132479dd66d975129db2a11d1afc4 (diff)
downloadnixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar.gz
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar.bz2
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar.lz
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar.xz
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.tar.zst
nixlib-a12f3d232d5bc99913537e44c25ee16afba628a0.zip
coqPackages.fiat_HEAD: New package for Coq 8.4pl6 and 8.5pl2
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/fiat/HEAD.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/fiat/HEAD.nix b/pkgs/development/coq-modules/fiat/HEAD.nix
new file mode 100644
index 000000000000..a92c14bdbff6
--- /dev/null
+++ b/pkgs/development/coq-modules/fiat/HEAD.nix
@@ -0,0 +1,35 @@
+{stdenv, fetchgit, coq, python27}:
+
+stdenv.mkDerivation rec {
+
+  name = "coq-fiat-${coq.coq-version}-${version}";
+  version = "20161024";
+
+  src = fetchgit {
+    url = "https://github.com/mit-plv/fiat.git";
+    rev = "7feb6c64be9ebcc05924ec58fe1463e73ec8206a";
+    sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64";
+  };
+
+  buildInputs = [ coq.ocaml coq.camlp5 python27 ];
+  propagatedBuildInputs = [ coq ];
+
+  doCheck = false;
+
+  enableParallelBuilding = false;
+  buildPhase = "make -j$NIX_BUILD_CORES";
+
+  installPhase = ''
+    COQLIB=$out/lib/coq/${coq.coq-version}/
+    mkdir -p $COQLIB/user-contrib/Fiat
+    cp -pR src/* $COQLIB/user-contrib/Fiat
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://plv.csail.mit.edu/fiat/;
+    description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
+    maintainers = with maintainers; [ jwiegley ];
+    platforms = coq.meta.platforms;
+  };
+
+}