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

Add hydraPlatform to all ocaml modules and ocaml versions. #13976

Closed
wants to merge 1 commit into from

Conversation

nbp
Copy link
Member

@nbp nbp commented Mar 16, 2016

This is a followup to #13897 (comment)
Which adds the hydraPlatforms attribute to all ocaml modules, and to all ocaml derivations too.

cc @zimbatm, @vbgl and @globin

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @FlorentBecker, @vbgl and @jirkamarsik to be potential reviewers

@vbgl
Copy link
Contributor

vbgl commented Mar 17, 2016

Why do you need this? The default value (i.e., hydraPlatforms defaults to platforms) is fine for all OCaml packages that Hydra looks at.

@nbp
Copy link
Member Author

nbp commented Mar 17, 2016

@vbgl We need this to prevent hydra from doing extra work while providing correct platforms information.

I noticed this issue while making an attempt to list all packages available in Nix, which apparently ended-up evaluating the platforms list. As requested by @globin , it would be better to have correct platforms information, and add the hydraPlatforms attribute to filter, instead of using the or [] notation.

This patch does that, it adds the hydraPlatforms information, such that we do not build where we do not intend to build, and add the platform field, such that we do not get errors while listing all packages.

@@ -69,6 +69,7 @@ stdenv.mkDerivation rec {
'';

platforms = with platforms; linux ++ darwin;
hydraPlatforms = with platforms; linux ++ darwin;
Copy link
Member

Choose a reason for hiding this comment

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

isn't hydraPlatforms = platforms by default ?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I do not think so, the release script fallbacks on platforms if there is no hydraPlatforms attribute.

@zimbatm
Copy link
Member

zimbatm commented Mar 17, 2016

I can't stop thinking that removing the two old crusty ocaml versions would also solve the problem.

@nbp
Copy link
Member Author

nbp commented Mar 17, 2016

I can't stop thinking that removing the two old crusty ocaml versions would also solve the problem.

Yes, this would work too.
Do we need these versions to build some other package?

@vbgl
Copy link
Contributor

vbgl commented Mar 18, 2016 via email

@FlorentBecker
Copy link
Contributor

Is this still needed now that 4.02 is the default ocaml?

@felschr
Copy link
Member

felschr commented Mar 14, 2020

Is this still an issue?

@bhipple
Copy link
Contributor

bhipple commented Jul 6, 2020

Is this still an issue?

I don't think so; if I'm wrong feel free to rebase, fixup merge conflicts, and re-open.

@bhipple bhipple closed this Jul 6, 2020
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

8 participants