Merge pull request #48617 from Zimmi48/passthru-ocamlPackages-in-coq-package
coq: add ocamlPackages in passthru
This commit is contained in:
commit
c091e93b99
17 changed files with 22 additions and 21 deletions
|
@ -11,10 +11,9 @@
|
|||
</para>
|
||||
|
||||
<para>
|
||||
Some libraries require OCaml and sometimes also Camlp5 or findlib. The exact
|
||||
versions that were used to build Coq are saved in the
|
||||
<literal>coq.ocaml</literal> and <literal>coq.camlp5</literal> and
|
||||
<literal>coq.findlib</literal> attributes.
|
||||
Some extensions (plugins) might require OCaml and sometimes other OCaml
|
||||
packages. The <literal>coq.ocamlPackages</literal> attribute can be used
|
||||
to depend on the same package set Coq was built against.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
|
@ -37,6 +37,8 @@ self = stdenv.mkDerivation {
|
|||
|
||||
passthru = {
|
||||
inherit coq-version;
|
||||
inherit ocamlPackages;
|
||||
# For compatibility
|
||||
inherit (ocamlPackages) ocaml camlp5 findlib num;
|
||||
emacsBufferSetup = pkgs: ''
|
||||
; Propagate coq paths to children
|
||||
|
|
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||
inherit (param) rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib ];
|
||||
propagatedBuildInputs = [ coq ssreflect ];
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
|
|
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||
inherit (param) rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib coq ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
||||
|
||||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
|||
inherit (param) rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib ];
|
||||
propagatedBuildInputs = [ coq ssreflect ];
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
|
|
@ -12,7 +12,7 @@ let mkContrib = repo: revs: param:
|
|||
sha256 = "${param.sha256}";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib coq ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
||||
|
||||
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
|||
inherit (param) sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
|
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||
inherit (param) rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib ];
|
||||
propagatedBuildInputs = [ coq ssreflect ];
|
||||
|
||||
enableParallelBuilding = false;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, autoreconfHook, coq, ocamlPackages }:
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, coq }:
|
||||
|
||||
let params = {
|
||||
"8.8" = {
|
||||
|
@ -34,8 +34,8 @@ stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ coq coq.camlp5 ]
|
||||
++ (with ocamlPackages; [ ocaml findlib ocamlgraph ]);
|
||||
buildInputs = [ coq ]
|
||||
++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ocamlgraph ]);
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
|
@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "${param.sha256}";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 coq.findlib coq ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
|
||||
|
||||
preBuild = "coq_makefile -f _CoqProject -o Makefile";
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0griqc675yylf9rvadlfsabz41qy5f5idya30p5rv6ysiakxya64";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 python27 ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 python27 ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "13fv150dcwnjrk00d7zj2c5x9jwmxgrq0ay440gkr730l8mvk3l3";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 bash which autoconf automake ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 bash which autoconf automake ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
buildPhase = ''
|
||||
|
|
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "03y71c4qs6cmy3s2hjs05g7pcgk9sqma6flj15394yyxbvr9is1p";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 unzip ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 unzip ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
preBuild = "cd src";
|
||||
|
|
|
@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
|||
inherit src;
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optionals withDoc [ graphviz ];
|
||||
buildInputs = [ coq.ocaml coq.findlib coq.camlp5 ncurses which ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml findlib camlp5 ncurses which ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 which coq lngen ott coq.findlib ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 which coq lngen ott findlib ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1lcmdr0y2d7gzyvr8dal3pi7fibbd60bpi1l32fw89xiyrgqhsqy";
|
||||
};
|
||||
|
||||
buildInputs = [ coq.ocaml coq.camlp5 unzip ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml camlp5 unzip ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
preBuild = "cd src";
|
||||
|
|
|
@ -9,7 +9,7 @@ stdenv.mkDerivation {
|
|||
inherit src;
|
||||
|
||||
nativeBuildInputs = stdenv.lib.optionals withDoc [ graphviz ];
|
||||
buildInputs = [ coq.ocaml coq.findlib coq.camlp5 ncurses which ];
|
||||
buildInputs = with coq.ocamlPackages; [ ocaml findlib camlp5 ncurses which ];
|
||||
propagatedBuildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Reference in a new issue