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

pkgs/top-level/release-cross.nix: add Hydra jobs for pkgsCross.platform.nixStatic #181151

Merged
merged 1 commit into from Jan 2, 2023
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jul 11, 2022

Description of changes

This commit causes Hydra to build nixStatic on non-NixOS platforms for which nixStatic is known to build correctly.

Providing Hydra builds of nixStatic on these platforms allows users to bootstrap their local nixpkgs system without either having to:

a. Trust binaries that came from a source other than Hydra or

b. Fight with their host distribution to satisfy all of nix's large set of build dependencies (this is not easy!)

Currently there are two platforms in this set: mips64el-linux-gnuabi64 and powerpc64le-linux-gnu.

Things done
  • Built on platform(s)
    • x86_64-linux (=buildPlatform)
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@ghost ghost requested review from Ericson2314 and matthewbauer as code owners July 11, 2022 19:48
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jul 11, 2022
@ghost ghost marked this pull request as draft July 11, 2022 20:09
@ghost ghost marked this pull request as ready for review July 11, 2022 20:28
@Mindavi Mindavi added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jul 12, 2022
@ghost
Copy link
Author

ghost commented Jul 16, 2022

If appropriate, I can add myself as maintainer for these new expressions. I assume that means I'll get an email if the Hydra builds fail. I would like that.

I tried doing that in the initial PR but the organization of release-cross.nix makes it really awkward to patch in new meta fields. It more than doubled the number of lines of code touched.

Edit: apparently Hydra no longer sends any kind of notification to package maintainers. ☹️

…rm.nixStatic

This commit causes Hydra to build `nixStatic` on non-NixOS platforms
for which nixStatic is known to build correctly.

Providing Hydra builds of `nixStatic` on these platforms allows users
to bootstrap their local nixpkgs system without either having to:

a. Trust binaries that came from a source other than Hydra or

b. Fight with their host distribution to satisfy all of nix's large
   set of build dependencies (this is not easy!)

Currently there are two platforms in this set: mips64el-linux-gnuabi64
and powerpc64le-linux-gnu.
@ghost
Copy link
Author

ghost commented Jan 2, 2023

Resolved merge conflict.

@Mindavi Mindavi merged commit b92e8e5 into NixOS:master Jan 2, 2023
@ghost
Copy link
Author

ghost commented Jan 3, 2023

@ghost ghost deleted the pr/hydra/cross-nixStatic branch January 3, 2023 22:57
@Mindavi
Copy link
Contributor

Mindavi commented Jan 4, 2023

Thanks for following up with a fix and reporting back here! Great that it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant