Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coq: add ocamlPackages in passthru #48617

Merged
merged 3 commits into from Oct 19, 2018

Conversation

Zimmi48
Copy link
Member

@Zimmi48 Zimmi48 commented Oct 17, 2018

Motivation for this change

Some package depending on Coq might need OCaml packages that are not the ones Coq is depending on but they still need to come from the same package set (same OCaml version).

Mitigates coq/coq#8227 (in Coq's default.nix we have only ocamlPackages as a passthru attribute, not ocaml, camlp5, findlib and num).

Things done

I only tested that the expression is evaluated correctly.

cc @vbgl

We might need OCaml packages that are not the one Coq is depending on
but they still need to come from the same package set (same OCaml version).
@@ -37,6 +37,8 @@ self = stdenv.mkDerivation {

passthru = {
inherit coq-version;
inherit ocamlPackages;
# For compatibility
inherit (ocamlPackages) ocaml camlp5 findlib num;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do the corresponding cleaning in the various coq packages. Thanks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Done.

@vbgl vbgl merged commit c091e93 into NixOS:master Oct 19, 2018
@Zimmi48 Zimmi48 deleted the passthru-ocamlPackages-in-coq-package branch October 24, 2018 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants