From 2b66c286be34c87829c5555ca5a92238231e6d0d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 29 Nov 2018 16:54:24 +0000 Subject: [PATCH] coqPackages.corn: init at 8.8.1 --- pkgs/development/coq-modules/corn/default.nix | 38 +++++++++++++++++++ pkgs/top-level/coq-packages.nix | 1 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/coq-modules/corn/default.nix 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 {};