coqPackages: move to a separate file and filter the package set
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
{ stdenv, fetchurl, coq, coqPackages }:
|
||||
|
||||
if !stdenv.lib.versionAtLeast coq.coq-version "8.6"
|
||||
then throw "CoLoR is not available for Coq ${coq.coq-version}"
|
||||
else
|
||||
{ stdenv, fetchurl, coq, bignums }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "coq${coq.coq-version}-CoLoR-1.4.0";
|
||||
@@ -12,7 +8,7 @@ stdenv.mkDerivation {
|
||||
sha256 = "1jsp9adsh7w59y41ihbwchryjhjpajgs9bhf8rnb4b3hzccqxgag";
|
||||
};
|
||||
|
||||
buildInputs = [ coq coqPackages.bignums ];
|
||||
buildInputs = [ coq bignums ];
|
||||
enableParallelBuilding = false;
|
||||
|
||||
installPhase = ''
|
||||
@@ -25,4 +21,8 @@ stdenv.mkDerivation {
|
||||
maintainers = with maintainers; [ jwiegley ];
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, autoconf, automake, coq }:
|
||||
|
||||
if !stdenv.lib.versionAtLeast coq.coq-version "8.6"
|
||||
then throw "This version of HoTT requires Coq 8.6"
|
||||
else stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "coq${coq.coq-version}-HoTT-${version}";
|
||||
version = "20170921";
|
||||
|
||||
@@ -56,4 +54,8 @@ else stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ siddharthist ];
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: v == "8.6";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -42,4 +42,8 @@ stdenv.mkDerivation rec {
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -42,4 +42,8 @@ stdenv.mkDerivation rec {
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -30,7 +30,9 @@ stdenv.mkDerivation rec {
|
||||
description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications";
|
||||
maintainers = with maintainers; [ jwiegley ];
|
||||
platforms = coq.meta.platforms;
|
||||
broken = stdenv.lib.versionAtLeast coq.coq-version "8.6";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: v == "8.5";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, coq, coqPackages }:
|
||||
|
||||
if ! stdenv.lib.versionAtLeast coq.coq-version "8.6" then
|
||||
throw "Math-Classes requires Coq 8.6 or later."
|
||||
else
|
||||
{ stdenv, fetchFromGitHub, coq, bignums }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
@@ -16,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0wgnczacvkb2pc3vjbni9bwjijfyd5jcdnyyjg8185hkf9zzabgi";
|
||||
};
|
||||
|
||||
buildInputs = [ coq coqPackages.bignums ];
|
||||
buildInputs = [ coq bignums ];
|
||||
enableParallelBuilding = true;
|
||||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
||||
|
||||
@@ -26,4 +22,9 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ siddharthist jwiegley ];
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchgit, coq, ocamlPackages, haskellPackages, which, ott
|
||||
{ stdenv, fetchgit, coq, haskellPackages, which, ott
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -29,8 +29,7 @@ stdenv.mkDerivation rec {
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 which coq lngen ott ]
|
||||
++ (with ocamlPackages; [ findlib ]);
|
||||
buildInputs = [ coq.ocaml coq.camlp5 which coq lngen ott coq.findlib ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
@@ -50,4 +49,8 @@ stdenv.mkDerivation rec {
|
||||
platforms = coq.meta.platforms;
|
||||
};
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user