about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-11-29 16:54:24 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-12-10 07:56:32 +0000
commit2b66c286be34c87829c5555ca5a92238231e6d0d (patch)
treef4fe5d80aa224d49d4ff41a0f6698157ddeff041
parent48e49d01b6d3c3ecc30e44b4db7fb03197f7e932 (diff)
downloadnixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.gz
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.bz2
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.lz
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.xz
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.zst
nixlib-2b66c286be34c87829c5555ca5a92238231e6d0d.zip
coqPackages.corn: init at 8.8.1
-rw-r--r--pkgs/development/coq-modules/corn/default.nix38
-rw-r--r--pkgs/top-level/coq-packages.nix1
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/corn/default.nix b/pkgs/development/coq-modules/corn/default.nix
new file mode 100644
index 000000000000..dc0f0873d07e
--- /dev/null
+++ b/pkgs/development/coq-modules/corn/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, coq, bignums, math-classes }:
+
+stdenv.mkDerivation rec {
+  pname = "corn";
+  version = "8.8.1";
+  name = "coq${coq.coq-version}-${pname}-${version}";
+  src = fetchFromGitHub {
+    owner = "coq-community";
+    repo = pname;
+    rev = version;
+    sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
+  };
+
+  buildInputs = [ coq ];
+
+  preConfigure = "patchShebangs ./configure.sh";
+  configureScript = "./configure.sh";
+  dontAddPrefix = true;
+
+  propagatedBuildInputs = [ bignums math-classes ];
+
+  enableParallelBuilding = true;
+
+  installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
+
+  meta = {
+    homepage = http://c-corn.github.io/;
+    license = stdenv.lib.licenses.gpl2;
+    description = "A Coq library for constructive analysis";
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    inherit (coq.meta) platforms;
+  };
+
+  passthru = {
+    compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
+  };
+
+}
diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix
index 6d6de4e22bd9..5a392b20cae5 100644
--- a/pkgs/top-level/coq-packages.nix
+++ b/pkgs/top-level/coq-packages.nix
@@ -20,6 +20,7 @@ let
       coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
       coqprime = callPackage ../development/coq-modules/coqprime {};
       coquelicot = callPackage ../development/coq-modules/coquelicot {};
+      corn = callPackage ../development/coq-modules/corn {};
       dpdgraph = callPackage ../development/coq-modules/dpdgraph {};
       equations = callPackage ../development/coq-modules/equations { };
       fiat_HEAD = callPackage ../development/coq-modules/fiat/HEAD.nix {};