Merge pull request #38969 from vbgl/coq-findlib
coq: fix installation of OCaml libraries
This commit is contained in:
commit
0d8e415d6b
@ -34,11 +34,9 @@ let
|
|||||||
self = stdenv.mkDerivation {
|
self = stdenv.mkDerivation {
|
||||||
name = "coq-${version}";
|
name = "coq-${version}";
|
||||||
|
|
||||||
inherit coq-version;
|
|
||||||
inherit camlp5;
|
|
||||||
inherit (ocamlPackages) ocaml;
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit (ocamlPackages) findlib num;
|
inherit coq-version camlp5;
|
||||||
|
inherit (ocamlPackages) ocaml findlib num;
|
||||||
emacsBufferSetup = pkgs: ''
|
emacsBufferSetup = pkgs: ''
|
||||||
; Propagate coq paths to children
|
; Propagate coq paths to children
|
||||||
(inherit-local-permanent coq-prog-name "${self}/bin/coqtop")
|
(inherit-local-permanent coq-prog-name "${self}/bin/coqtop")
|
||||||
@ -125,8 +123,11 @@ self = stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildFlags = "revision coq coqide bin/votour";
|
buildFlags = "revision coq coqide bin/votour";
|
||||||
|
|
||||||
|
createFindlibDestdir = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp bin/votour $out/bin/
|
cp bin/votour $out/bin/
|
||||||
|
ln -s $out/lib/coq $OCAMLFIND_DESTDIR/coq
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user