Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 21, 2022

This PR translates nix's system name for mips64el into golang's system names, so golang can be built targeting mips64el.

Motivation for this change
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ghost ghost requested review from Mic92, kalbasit and zowoq as code owners February 21, 2022 05:35
@github-actions github-actions bot added the 6.topic: golang Go is a high-level general purpose programming language that is statically typed and compiled. label Feb 21, 2022
Copy link
Contributor

@zowoq zowoq left a comment

Choose a reason for hiding this comment

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

@zowoq zowoq changed the title mips64: golang support go: add mips64 support Feb 21, 2022
@zowoq
Copy link
Contributor

zowoq commented Feb 21, 2022

Commit message is still wrong.

@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 Feb 21, 2022
@ghost
Copy link
Author

ghost commented Feb 21, 2022

Commit message is still wrong.

sorry, missed that. fixed now.

@zowoq
Copy link
Contributor

zowoq commented Feb 21, 2022

Does this depend on some of your other PRs to work?

@ghost
Copy link
Author

ghost commented Feb 21, 2022

No.

It isn't terribly useful without the rest of the support for mips64. However unlike all the other patches in the series this one can be merged ahead of the one that creates stuff like stdenv.isMips64 without breaking evaluation.

@ghost
Copy link
Author

ghost commented Feb 21, 2022

If you're curious, #161158 is the blocker. All the other mips64-related PRs except this one need to have #161158 merged first.

Copy link
Contributor

@zowoq zowoq left a comment

Choose a reason for hiding this comment

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

Let's wait until it works and is useful before merging so we aren't adding cruft.

@zowoq zowoq marked this pull request as draft February 21, 2022 09:13
@ghost ghost mentioned this pull request Feb 21, 2022
13 tasks
@zowoq
Copy link
Contributor

zowoq commented Mar 17, 2022

@ofborg eval

@zowoq zowoq marked this pull request as ready for review March 17, 2022 21:51
@zowoq zowoq merged commit 55dae42 into NixOS:master Mar 18, 2022
@ghost ghost deleted the mips64-golang branch March 18, 2022 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: golang Go is a high-level general purpose programming language that is statically typed and compiled. 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