summary refs log tree commit diff
path: root/pkgs/development/coq-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-06-13 15:25:38 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-06-19 09:24:34 +0000
commit37eef9055ad0a150991d13c913df6b7e9ce24fdf (patch)
treeabaf3d5a2512c825c969b5eabd530a0da0c1a185 /pkgs/development/coq-modules
parent1f2a3a2df227e9e2abbf57db9c0352cb222dcc70 (diff)
downloadnixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar.gz
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar.bz2
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar.lz
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar.xz
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.tar.zst
nixpkgs-37eef9055ad0a150991d13c913df6b7e9ce24fdf.zip
coqPackages.gappalib: init at 1.4.1
This is the Coq support library for Gappa.
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/gappalib/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/gappalib/default.nix b/pkgs/development/coq-modules/gappalib/default.nix
new file mode 100644
index 00000000000..b76dd1b43d1
--- /dev/null
+++ b/pkgs/development/coq-modules/gappalib/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, which, coq, flocq }:
+
+stdenv.mkDerivation {
+  name = "coq${coq.coq-version}-gappalib-1.4.1";
+  src = fetchurl {
+    url = https://gforge.inria.fr/frs/download.php/file/37917/gappalib-coq-1.4.1.tar.gz;
+    sha256 = "0d3f23a871haglg8hq1jgxz3y5nryiwy12b5xfnfjn279jfqqjw4";
+  };
+
+  nativeBuildInputs = [ which ];
+  buildInputs = [ coq coq.ocamlPackages.ocaml ];
+  propagatedBuildInputs = [ flocq ];
+
+  configurePhase = "./configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Gappa";
+  buildPhase = "./remake";
+  installPhase = "./remake install";
+
+  meta = {
+    description = "Coq support library for Gappa";
+    license = stdenv.lib.licenses.lgpl21;
+    homepage = http://gappa.gforge.inria.fr/;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    inherit (coq.meta) platforms;
+  };
+
+  passthru = {
+    compatibleCoqVersions = stdenv.lib.flip stdenv.lib.versionAtLeast "8.7";
+  };
+
+}