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

ocamlPackages.alcotest: 0.4.5 -> 0.7.2 #20404

Merged
merged 3 commits into from Nov 26, 2016
Merged

ocamlPackages.alcotest: 0.4.5 -> 0.7.2 #20404

merged 3 commits into from Nov 26, 2016

Conversation

vbgl
Copy link
Contributor

@vbgl vbgl commented Nov 14, 2016

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
    • Linux
  • 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.

@mention-bot
Copy link

@vbgl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ericbmerritt, @aske and @sternenseemann to be potential reviewers.


createFindlibDestdir = true;

installPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

It would probably be cool, if you could inherit a opam-installer installPhase as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by “cool”? Should derivations be cool? I don’t see how this installPhase value could be shared among several derivations as it explicitly mentions the library name (twice). It is true however that the common and recurring parts could be factorized away in a library for building OCaml derivations.

Copy link
Member

Choose a reason for hiding this comment

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

That is a good point, opam-installer does not necessarily need it, and buildOcaml should know the library name as the name attribute is the name without version and ocaml-prefix.

So I guess it could work?

Copy link
Contributor Author

@vbgl vbgl Nov 23, 2016

Choose a reason for hiding this comment

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

This seems possible. I will give it a try.

… name

It can then be reused as-is in other derivations (e.g., uucd).
fmt is an OCaml library of Format pretty-printer combinators.

Homepage: http://erratique.ch/software/fmt
@vbgl
Copy link
Contributor Author

vbgl commented Nov 23, 2016

Updated to take into account @sternenseemann’s suggestion: inheriting the installPhase.

Copy link
Member

@sternenseemann sternenseemann left a comment

Choose a reason for hiding this comment

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

Great! Didn't know the --libdir option before.

@vbgl vbgl merged commit 376973a into NixOS:master Nov 26, 2016
@vbgl vbgl deleted the alcotest-0.7.0 branch December 22, 2016 06:15
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