summary refs log tree commit diff
path: root/pkgs/development/coq-modules
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 /pkgs/development/coq-modules
parent48e49d01b6d3c3ecc30e44b4db7fb03197f7e932 (diff)
downloadnixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.gz
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.bz2
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.lz
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.xz
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.tar.zst
nixpkgs-2b66c286be34c87829c5555ca5a92238231e6d0d.zip
coqPackages.corn: init at 8.8.1
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/corn/default.nix38
1 files changed, 38 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 00000000000..dc0f0873d07
--- /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";
+  };
+
+}