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

Math classes 1.0.7 #30934

Merged
merged 2 commits into from Nov 5, 2017
Merged

Math classes 1.0.7 #30934

merged 2 commits into from Nov 5, 2017

Conversation

Zimmi48
Copy link
Member

@Zimmi48 Zimmi48 commented Oct 29, 2017

Motivation for this change

Introduces compatibility with Coq 8.7.0.
Also adds the bignums package which is a dependency.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Bignums used to be part of the standard library of Coq.
We provide a version for Coq 8.6, and one for Coq 8.7.
This version introduces compatibility with Coq 8.7.
@Zimmi48
Copy link
Member Author

Zimmi48 commented Oct 30, 2017

Cc @jwiegley @siddharthist @vbgl @maximedenes.

src = fetchFromGitHub {
owner = "coq";
repo = "bignums";
inherit rev sha256;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this build? I don't see rev and sha256 in the parent dictionary.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it builds, the rev and sha256 are defined in an attribute set above that is imported using with.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see. The indentation is a little strange, it doesn't make it clear that the mkDerivation is a sub-expression of the if-else clause. Not a huge deal, though.

@langston-barrett
Copy link
Contributor

@Zimmi48 Thanks! Looking forward to having the new bignums in nixpkgs.

stdenv.mkDerivation {
name = "coq${coq.coq-version}-math-classes-1.0.6";
if ! stdenv.lib.versionAtLeast coq.coq-version "8.6" then
throw "Math-Classes requires Coq 8.6 or later."
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this true? How difficult is it to keep the old package for 8.5 alive?

Copy link
Member Author

Choose a reason for hiding this comment

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

@vbgl There is no package for 8.5 in the sense that the previous package available in nixpkgs was already requiring Coq 8.6 (at least that's what the corresponding OPAM package says, I haven't checked that there was indeed a build failure).

Copy link
Contributor

Choose a reason for hiding this comment

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

My bad. You’re right: coqPackages_8_5.math-classes currently fails to build.

@vbgl vbgl merged commit 1ddadc6 into NixOS:master Nov 5, 2017
@Zimmi48 Zimmi48 deleted the math-classes-1.0.7 branch November 6, 2017 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants