coqPackages: refactor

This commit is contained in:
Cyril Cohen
2021-01-09 11:56:17 +01:00
committed by Vincent Laporte
parent 04065a7354
commit 9ffd16b385
54 changed files with 1331 additions and 2217 deletions
+7 -24
View File
@@ -1,17 +1,10 @@
{ stdenv, fetchFromGitHub, coq, bignums, math-classes }:
{ lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }:
stdenv.mkDerivation rec {
with lib; mkCoqDerivation 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 ];
inherit version;
defaultVersion = if versions.range "8.6" "8.9" coq.coq-version then "8.8.1" else null;
release."8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
preConfigure = "patchShebangs ./configure.sh";
configureScript = "./configure.sh";
@@ -19,20 +12,10 @@ stdenv.mkDerivation rec {
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;
license = licenses.gpl2;
description = "A Coq library for constructive analysis";
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (coq.meta) platforms;
maintainers = [ maintainers.vbgl ];
};
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" ];
};
}