Skip to content

go_1_14, go_1_15, go_2-dev: only override stdenv if it is gcc#112248

Merged
kalbasit merged 1 commit intoNixOS:masterfrom
bobrik:ivan/go-gcc-override
Feb 15, 2021
Merged

go_1_14, go_1_15, go_2-dev: only override stdenv if it is gcc#112248
kalbasit merged 1 commit intoNixOS:masterfrom
bobrik:ivan/go-gcc-override

Conversation

@bobrik
Copy link
Contributor

@bobrik bobrik commented Feb 7, 2021

Motivation for this change

This doesn't do anything for existing packages, but it helps #105026,since aarch64-darwin doesn't have a working gcc today.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

This doesn't do anything for existing packages, but it helps NixOS#105026,
since `aarch64-darwin` doesn't have a working gcc today.
@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 7, 2021
@bobrik bobrik mentioned this pull request Feb 7, 2021
10 tasks
@dotlambda dotlambda changed the title go_1_14, go_1_15, go_2-dev: do not override stdenv if it is not gcc go_1_14, go_1_15, go_2-dev: only override stdenv if it is gcc Feb 7, 2021
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.

Looks fine.

cc @NixOS/golang

@kalbasit kalbasit merged commit 368ed8f into NixOS:master Feb 15, 2021
@bobrik bobrik deleted the ivan/go-gcc-override branch March 6, 2021 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants